nixpkgs/pkgs/development/python-modules/clldutils/default.nix

54 lines
854 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, attrs
, colorlog
, csvw
, dateutil
, tabulate
, mock
, postgresql
, pytestCheckHook
, pytest-mock
}:
buildPythonPackage rec {
pname = "clldutils";
version = "3.6.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "clld";
repo = pname;
rev = "v${version}";
sha256 = "10jcd2x99z5ym2aki92c54caw97b3xgrkjj83qpln26hbdwpaz99";
};
patchPhase = ''
substituteInPlace setup.cfg --replace "--cov" ""
'';
propagatedBuildInputs = [
dateutil
tabulate
colorlog
attrs
csvw
];
checkInputs = [
mock
postgresql
pytestCheckHook
pytest-mock
];
meta = with lib; {
description = "CSV on the Web";
homepage = "https://github.com/cldf/csvw";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}