Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / clldutils / default.nix
blob96e6b86c1507c3713bd3f5aedfff1e4d02db5756
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isPy27
5 , attrs
6 , colorlog
7 , csvw
8 , dateutil
9 , tabulate
10 , mock
11 , postgresql
12 , pytestCheckHook
13 , pytest-mock
16 buildPythonPackage rec {
17   pname = "clldutils";
18   version = "3.7.0";
19   disabled = isPy27;
21   src = fetchFromGitHub {
22     owner = "clld";
23     repo = pname;
24     rev = "v${version}";
25     sha256 = "13shas7krf7j04gqxjn09ipy318hmrp1s3b5d576d5r1xfxakam4";
26   };
28   patchPhase = ''
29     substituteInPlace setup.cfg --replace "--cov" ""
30   '';
32   propagatedBuildInputs = [
33     dateutil
34     tabulate
35     colorlog
36     attrs
37     csvw
38   ];
40   checkInputs = [
41     mock
42     postgresql
43     pytestCheckHook
44     pytest-mock
45   ];
47   meta = with lib; {
48     description = "CSV on the Web";
49     homepage = "https://github.com/cldf/csvw";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ hexa ];
52   };