1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools_scm
5, cython
6, numpy
7, msgpack
8, pytest
9, python
10, gcc8
11}:
12
13buildPythonPackage rec {
14 pname = "numcodecs";
15 version = "0.6.4";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "ef4843d5db4d074e607e9b85156835c10d006afc10e175bda62ff5412fca6e4d";
20 };
21
22 nativeBuildInputs = [
23 setuptools_scm
24 cython
25 gcc8
26 ];
27
28 propagatedBuildInputs = [
29 numpy
30 msgpack
31 ];
32
33 checkInputs = [
34 pytest
35 ];
36
37 checkPhase = ''
38 pytest $out/${python.sitePackages}/numcodecs -k "not test_backwards_compatibility"
39 '';
40
41 meta = with lib;{
42 homepage = https://github.com/alimanfoo/numcodecs;
43 license = licenses.mit;
44 description = "Buffer compression and transformation codecs for use in data storage and communication applications";
45 maintainers = [ maintainers.costrouc ];
46 };
47}