diff --git a/pkgs/development/python-modules/slicerator/default.nix b/pkgs/development/python-modules/slicerator/default.nix new file mode 100644 index 000000000000..6af7fafdddf8 --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4a4211e7f597..d32b42c19508 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -568,6 +568,8 @@ in { slackclient = callPackage ../development/python-modules/slackclient { }; + slicerator = callPackage ../development/python-modules/slicerator { }; + spglib = callPackage ../development/python-modules/spglib { }; statistics = callPackage ../development/python-modules/statistics { };