about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix b/nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix
new file mode 100644
index 000000000000..cbf966785e17
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/jaraco_itertools/default.nix
@@ -0,0 +1,29 @@
+{ lib, buildPythonPackage, fetchPypi, setuptools_scm
+, inflect, more-itertools, six, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "jaraco.itertools";
+  version = "4.4.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "d1380ed961c9a4724f0bcca85d2bffebaa2507adfde535d5ee717441c9105fae";
+  };
+
+  patches = [ ./0001-Don-t-run-flake8-checks-during-the-build.patch ];
+
+  buildInputs = [ setuptools_scm ];
+  propagatedBuildInputs = [ inflect more-itertools six ];
+  checkInputs = [ pytest ];
+
+  checkPhase = ''
+    pytest
+  '';
+
+  meta = with lib; {
+    description = "Tools for working with iterables";
+    homepage = https://github.com/jaraco/jaraco.itertools;
+    license = licenses.mit;
+  };
+}