about summary refs log tree commit diff
path: root/pkgs/development/python-modules/clldutils
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2020-06-08 03:39:06 +0200
committerJon <jonringer@users.noreply.github.com>2020-09-22 10:11:37 -0700
commit8fca119c523596eb8e58ab621f009fe207d7fc7b (patch)
tree1a60c410c3f565bce42039704d548d5c4c667b20 /pkgs/development/python-modules/clldutils
parent2904bef26cfa3b7302c871e7ec8962bd79c2478c (diff)
python3Packages.clldutils: init at 3.5.2
Diffstat (limited to 'pkgs/development/python-modules/clldutils')
-rw-r--r--pkgs/development/python-modules/clldutils/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/clldutils/default.nix b/pkgs/development/python-modules/clldutils/default.nix
new file mode 100644
index 0000000000000..69813e6a2eb70
--- /dev/null
+++ b/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 ];
+  };
+}