18 buildPythonPackage rec {
23 disabled = pythonOlder "3.8";
26 inherit pname version;
27 hash = "sha256-BdkaQzcz5+7yaNfoDsImoCMtokQolhSo84JpAa7BCY4=";
31 # https://github.com/zarr-developers/numcodecs/pull/487
33 name = "fix-tests.patch";
34 url = "https://github.com/zarr-developers/numcodecs/commit/4896680087d3ff1f959401c51cf5aea0fd56554e.patch";
35 hash = "sha256-+lMWK5IsNzJ7H2SmLckgxbSSRIIcC7FtGYSBKQtuo+Y=";
46 propagatedBuildInputs = [ numpy ];
48 optional-dependencies = {
49 msgpack = [ msgpack ];
54 if (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) then
56 export DISABLE_NUMCODECS_AVX2=
66 pytestFlagsArray = [ "$out/${python.sitePackages}/numcodecs" ];
69 "test_backwards_compatibility"
72 "test_legacy_codec_broken"
75 # 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.
77 "test_non_numpy_inputs"
81 homepage = "https://github.com/zarr-developers/numcodecs";
82 license = licenses.mit;
83 description = "Buffer compression and transformation codecs for use in data storage and communication applications";