diff options
author | Aaron Andersen <aaron@fosslib.net> | 2019-09-05 17:24:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 17:24:07 -0400 |
commit | 34a6f75090e8492c975189b1a0371aaa7b78c8d9 (patch) | |
tree | ae0c00aca0117219394fa0f8131dfaa5b2e36e70 | |
parent | b0811157880f2798a3159532215b16b6ed5e2f98 (diff) | |
parent | d0a442f6e55a3083b87fd73d09d6a32aac0aefbf (diff) |
Merge pull request #62754 from tbenst/imagecodecs-lite
imagecodecs-lite: init at 2019.4.20
-rw-r--r-- | pkgs/development/python-modules/imagecodecs-lite/default.nix | 25 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/imagecodecs-lite/default.nix b/pkgs/development/python-modules/imagecodecs-lite/default.nix new file mode 100644 index 0000000000000..6374b882718bf --- /dev/null +++ b/pkgs/development/python-modules/imagecodecs-lite/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchPypi, buildPythonPackage +, pytest +, numpy +, cython +}: + +buildPythonPackage rec { + pname = "imagecodecs-lite"; + version = "2019.4.20"; + + src = fetchPypi { + inherit pname version; + sha256 = "1cp88g7g91gdhjhaz6gvb4jzvi5ad817id9f2bnc5r95ag93bqb0"; + }; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ numpy cython ]; + + meta = with lib; { + description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions"; + homepage = "https://www.lfd.uci.edu/~gohlke/"; + maintainers = [ maintainers.tbenst ]; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5064efa558b08..97a76a1e3e534 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2435,6 +2435,8 @@ in { ijson = callPackage ../development/python-modules/ijson {}; + imagecodecs-lite = disabledIf (!isPy3k) (callPackage ../development/python-modules/imagecodecs-lite { }); + imagesize = callPackage ../development/python-modules/imagesize { }; image-match = callPackage ../development/python-modules/image-match { }; |