ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / clldutils / default.nix
blob697296d9a200b7260e132098a9e5f9c1c49d1593
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isPy27
5 , attrs
6 , colorlog
7 , csvw
8 , python-dateutil
9 , tabulate
10 , mock
11 , postgresql
12 , pytestCheckHook
13 , pytest-mock
16 buildPythonPackage rec {
17   pname = "clldutils";
18   version = "3.9.0";
19   disabled = isPy27;
21   src = fetchFromGitHub {
22     owner = "clld";
23     repo = pname;
24     rev = "v${version}";
25     sha256 = "07ljq7v1zvaxyl6xn4a2p4097lgd5j9bz71lf05y5bz8k024mxbr";
26   };
28   patchPhase = ''
29     substituteInPlace setup.cfg --replace "--cov" ""
30   '';
32   propagatedBuildInputs = [
33     python-dateutil
34     tabulate
35     colorlog
36     attrs
37     csvw
38   ];
40   checkInputs = [
41     mock
42     postgresql
43     pytestCheckHook
44     pytest-mock
45   ];
47   disabledTests = [
48     # uses pytest.approx which is not supported in a boolean context in pytest7
49     "test_to_dec"
50     "test_roundtrip"
51   ];
53   meta = with lib; {
54     description = "Utilities for clld apps without the overhead of requiring pyramid, rdflib et al";
55     homepage = "https://github.com/clld/clldutils";
56     license = licenses.asl20;
57     maintainers = with maintainers; [ ];
58   };