1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, setuptools
6, setuptools-scm
7, cython
8, entrypoints
9, numpy
10, msgpack
11, py-cpuinfo
12, pytestCheckHook
13, python
14}:
15
16buildPythonPackage rec {
17 pname = "numcodecs";
18 version = "0.11.0";
19 format ="pyproject";
20 disabled = isPy27;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-bAWLMh3oShcpKZsOrk1lKy5I6hyn+d8NplyxNHDmNes=";
25 };
26
27 nativeBuildInputs = [
28 setuptools
29 setuptools-scm
30 cython
31 py-cpuinfo
32 ];
33
34 propagatedBuildInputs = [
35 entrypoints
36 numpy
37 msgpack
38 ];
39
40 nativeCheckInputs = [
41 pytestCheckHook
42 ];
43
44 pytestFlagsArray = [
45 "$out/${python.sitePackages}/numcodecs"
46 ];
47
48 disabledTests = [
49 "test_backwards_compatibility"
50
51 "test_encode_decode"
52 "test_legacy_codec_broken"
53 "test_bytes"
54
55 # ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.
56 # with numpy 1.24
57 "test_non_numpy_inputs"
58 ];
59
60 meta = with lib;{
61 homepage = "https://github.com/zarr-developers/numcodecs";
62 license = licenses.mit;
63 description = "Buffer compression and transformation codecs for use in data storage and communication applications";
64 maintainers = [ maintainers.costrouc ];
65 };
66}