summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/imagecodecs-lite/default.nix
blob: d1c48711375413ea74db74fee8be409ae6b51bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  fetchPypi,
  buildPythonPackage,
  pytest,
  numpy,
  cython,
}:

buildPythonPackage rec {
  pname = "imagecodecs-lite";
  version = "2019.12.3";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0s4xb17qd7vimc46rafbjnibj4sf0lnv8cwl22k1h6zb7jhqmlcm";
  };

  nativeBuildInputs = [ cython ];

  nativeCheckInputs = [ pytest ];

  propagatedBuildInputs = [ numpy ];

  checkPhase = ''
    pytest
  '';

  meta = {
    description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions";
    homepage = "https://www.lfd.uci.edu/~gohlke/";
    maintainers = [ lib.maintainers.tbenst ];
    license = lib.licenses.bsd3;
  };
}