3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/numcodecs/default.nix
2022-07-21 22:34:02 +02:00

58 lines
1,003 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools-scm
, cython
, numpy
, msgpack
, pytestCheckHook
, python
, gcc8
}:
buildPythonPackage rec {
pname = "numcodecs";
version = "0.10.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-LdQlZOd3KpOFkjsCo2Pjzt8FPOkwlKkGRIXn9ppvHJI=";
};
nativeBuildInputs = [
setuptools-scm
cython
gcc8
];
propagatedBuildInputs = [
numpy
msgpack
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"$out/${python.sitePackages}/numcodecs"
];
disabledTests = [
"test_backwards_compatibility"
"test_encode_decode"
"test_legacy_codec_broken"
"test_bytes"
];
meta = with lib;{
homepage = "https://github.com/zarr-developers/numcodecs";
license = licenses.mit;
description = "Buffer compression and transformation codecs for use in data storage and communication applications";
maintainers = [ maintainers.costrouc ];
};
}