Skip to content

Commit

Permalink
python3Packages.clldutils: init at 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored and Jon committed Sep 22, 2020
1 parent 2904bef commit 8fca119
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/clldutils/default.nix
@@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, attrs
, colorlog
, csvw
, dateutil
, tabulate
, mock
, postgresql
, pytestCheckHook
, pytest-mock
}:

buildPythonPackage rec {
pname = "clldutils";
version = "3.5.2";
disabled = isPy27;

src = fetchFromGitHub {
owner = "clld";
repo = pname;
rev = "v${version}";
sha256 = "0qlqp9yq4lbi9ik2psgw0svxlb7raadqaxdh2dgkn85d7h20y4nd";
};

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -1188,6 +1188,8 @@ in {

clize = callPackage ../development/python-modules/clize { };

clldutils = callPackage ../development/python-modules/clldutils { };

closure-linter = callPackage ../development/python-modules/closure-linter { };

cloudflare = callPackage ../development/python-modules/cloudflare { };
Expand Down

0 comments on commit 8fca119

Please sign in to comment.