1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 pytest,
6 numpy,
7 cython,
8}:
9
10buildPythonPackage rec {
11 pname = "imagecodecs-lite";
12 version = "2019.12.3";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "0s4xb17qd7vimc46rafbjnibj4sf0lnv8cwl22k1h6zb7jhqmlcm";
18 };
19
20 nativeBuildInputs = [ cython ];
21
22 nativeCheckInputs = [ pytest ];
23
24 propagatedBuildInputs = [ numpy ];
25
26 checkPhase = ''
27 pytest
28 '';
29
30 meta = with lib; {
31 description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions";
32 homepage = "https://www.lfd.uci.edu/~gohlke/";
33 maintainers = [ maintainers.tbenst ];
34 license = licenses.bsd3;
35 };
36}