1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, setuptools_scm
6, cython
7, numpy
8, msgpack
9, pytestCheckHook
10, python
11, gcc8
12}:
13
14buildPythonPackage rec {
15 pname = "numcodecs";
16 version = "0.7.3";
17 disabled = isPy27;
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "022b12ad83eb623ec53f154859d49f6ec43b15c36052fa864eaf2d9ee786dd85";
22 };
23
24 nativeBuildInputs = [
25 setuptools_scm
26 cython
27 gcc8
28 ];
29
30 propagatedBuildInputs = [
31 numpy
32 msgpack
33 ];
34
35 checkInputs = [
36 pytestCheckHook
37 ];
38
39 pytestFlagsArray = [
40 "$out/${python.sitePackages}/numcodecs"
41 ];
42
43 disabledTests = [
44 "test_backwards_compatibility"
45
46 "test_encode_decode"
47 "test_legacy_codec_broken"
48 "test_bytes"
49 ];
50
51 meta = with lib;{
52 homepage = "https://github.com/alimanfoo/numcodecs";
53 license = licenses.mit;
54 description = "Buffer compression and transformation codecs for use in data storage and communication applications";
55 maintainers = [ maintainers.costrouc ];
56 };
57}