summary refs log tree commit diff
path: root/pkgs/development/python-modules/slicerator
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-09-13 16:41:34 -0400
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2018-09-13 16:41:34 -0400
commitce4b7154ac5b91157243fe78eb4ff29a00705338 (patch)
treefa37e03eeec349d8beabb3a801cd5b591ee6bf7e /pkgs/development/python-modules/slicerator
parent1a67a15c6ff55c97cc27daaf00f51cccc0711799 (diff)
downloadnixpkgs-ce4b7154ac5b91157243fe78eb4ff29a00705338.tar
nixpkgs-ce4b7154ac5b91157243fe78eb4ff29a00705338.tar.gz
nixpkgs-ce4b7154ac5b91157243fe78eb4ff29a00705338.tar.bz2
nixpkgs-ce4b7154ac5b91157243fe78eb4ff29a00705338.tar.lz
nixpkgs-ce4b7154ac5b91157243fe78eb4ff29a00705338.tar.xz
nixpkgs-ce4b7154ac5b91157243fe78eb4ff29a00705338.tar.zst
nixpkgs-ce4b7154ac5b91157243fe78eb4ff29a00705338.zip
pythonPackages.slicerator: init at 0.9.8
Diffstat (limited to 'pkgs/development/python-modules/slicerator')
-rw-r--r--pkgs/development/python-modules/slicerator/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/slicerator/default.nix b/pkgs/development/python-modules/slicerator/default.nix
new file mode 100644
index 00000000000..6af7fafdddf
--- /dev/null
+++ b/pkgs/development/python-modules/slicerator/default.nix
@@ -0,0 +1,32 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, python
+, six
+}:
+
+buildPythonPackage rec {
+  version = "0.9.8";
+  pname = "slicerator";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "b91dd76a415fd8872185cbd6fbf1922fe174359053d4694983fc719e4a0f5667";
+  };
+
+  propagatedBuildInputs = [ six ];
+
+  checkPhase = ''
+    ${python.interpreter} run_tests.py
+  '';
+
+  # run_tests.py not packaged with pypi release
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    homepage = http://github.com/soft-matter/slicerator;
+    description = "A lazy-loading, fancy-sliceable iterable";
+    license = licenses.bsdOriginal;
+    maintainers = [ maintainers.costrouc ];
+  };
+}