summary refs log tree commit diff
path: root/pkgs/development/python2-modules/zipp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python2-modules/zipp/default.nix')
-rw-r--r--pkgs/development/python2-modules/zipp/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python2-modules/zipp/default.nix b/pkgs/development/python2-modules/zipp/default.nix
new file mode 100644
index 00000000000..82f100aaa0d
--- /dev/null
+++ b/pkgs/development/python2-modules/zipp/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, setuptools-scm
+, pytest
+, pytest-flake8
+, more-itertools
+}:
+
+buildPythonPackage rec {
+  pname = "zipp";
+  version = "1.0.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0v3qayhqv7vyzydpydwcp51bqciw8p2ajddw68x5k8zppc0vx3yk";
+  };
+
+  nativeBuildInputs = [ setuptools-scm ];
+
+  propagatedBuildInputs = [ more-itertools ];
+
+  checkInputs = [ pytest pytest-flake8 ];
+
+  checkPhase = ''
+    pytest
+  '';
+
+  # Prevent infinite recursion with pytest
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Pathlib-compatible object wrapper for zip files";
+    homepage = "https://github.com/jaraco/zipp";
+    license = licenses.mit;
+  };
+}