about summary refs log tree commit diff
path: root/pkgs/development/python-modules/toolz
diff options
context:
space:
mode:
authorNicolai Kellerer <nicolai@kellerer.me>2020-10-30 18:05:26 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-10-31 09:55:25 -0700
commitc1cf4abe6d53aa9b905714f48d46737d10380997 (patch)
treea1a8bd76d8d7f60f27d0d7778badaa614e9e6a66 /pkgs/development/python-modules/toolz
parenta64f9cfab46dc824b119d1963d72b5b6a891b762 (diff)
pythonPackages.toolz: create Python 2 package
Diffstat (limited to 'pkgs/development/python-modules/toolz')
-rw-r--r--pkgs/development/python-modules/toolz/2.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/toolz/2.nix b/pkgs/development/python-modules/toolz/2.nix
new file mode 100644
index 0000000000000..8c8a64db3a5ed
--- /dev/null
+++ b/pkgs/development/python-modules/toolz/2.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, nose
+}:
+
+buildPythonPackage rec {
+  pname = "toolz";
+  version = "0.10.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4560";
+  };
+
+  checkInputs = [ nose ];
+
+  checkPhase = ''
+    nosetests toolz/tests
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/pytoolz/toolz";
+    description = "List processing tools and functional utilities";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ fridh ];
+  };
+}