summary refs log tree commit diff
path: root/pkgs/development/python-modules/numcodecs/default.nix
blob: ea93fc1f3f3e62976a070409a5ba96c826da0e62 (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, cython
, numpy
, msgpack
, pytest
, python
, gcc8
}:

buildPythonPackage rec {
  pname = "numcodecs";
  version = "0.6.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ef4843d5db4d074e607e9b85156835c10d006afc10e175bda62ff5412fca6e4d";
  };

  nativeBuildInputs = [
    setuptools_scm
    cython
    gcc8
  ];

  propagatedBuildInputs = [
    numpy
    msgpack
  ];

  checkInputs = [
    pytest
  ];

  checkPhase = ''
    pytest $out/${python.sitePackages}/numcodecs -k "not test_backwards_compatibility"
  '';

  meta = with lib;{
    homepage = "https://github.com/alimanfoo/numcodecs";
    license = licenses.mit;
    description = "Buffer compression and transformation codecs for use in data storage and communication applications";
    maintainers = [ maintainers.costrouc ];
  };
}