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
14}:
15
16buildPythonPackage rec {
17 pname = "clldutils";
18 version = "3.9.0";
19 disabled = isPy27;
20
21 src = fetchFromGitHub {
22 owner = "clld";
23 repo = pname;
24 rev = "v${version}";
25 sha256 = "07ljq7v1zvaxyl6xn4a2p4097lgd5j9bz71lf05y5bz8k024mxbr";
26 };
27
28 patchPhase = ''
29 substituteInPlace setup.cfg --replace "--cov" ""
30 '';
31
32 propagatedBuildInputs = [
33 python-dateutil
34 tabulate
35 colorlog
36 attrs
37 csvw
38 ];
39
40 checkInputs = [
41 mock
42 postgresql
43 pytestCheckHook
44 pytest-mock
45 ];
46
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; [ ];
52 };
53}