2019-07-17 23:10:50 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-16 08:12:21 +01:00
|
|
|
, isPy27
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2019-07-17 23:10:50 +01:00
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
, msgpack
|
2020-08-10 12:35:52 +01:00
|
|
|
, pytestCheckHook
|
2019-07-17 23:10:50 +01:00
|
|
|
, python
|
2019-11-07 00:04:17 +00:00
|
|
|
, gcc8
|
2019-07-17 23:10:50 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "numcodecs";
|
2021-09-06 12:10:09 +01:00
|
|
|
version = "0.9.1";
|
2020-10-16 08:12:21 +01:00
|
|
|
disabled = isPy27;
|
2019-07-17 23:10:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-06 12:10:09 +01:00
|
|
|
sha256 = "35adbcc746b95e3ac92e949a161811f5aa2602b9eb1ef241b5ea6f09bb220997";
|
2019-07-17 23:10:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-06-03 11:09:11 +01:00
|
|
|
setuptools-scm
|
2019-07-17 23:10:50 +01:00
|
|
|
cython
|
2019-11-07 00:04:17 +00:00
|
|
|
gcc8
|
2019-07-17 23:10:50 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2020-08-10 12:35:52 +01:00
|
|
|
pytestCheckHook
|
2019-07-17 23:10:50 +01:00
|
|
|
];
|
|
|
|
|
2020-08-10 12:35:52 +01:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"$out/${python.sitePackages}/numcodecs"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_backwards_compatibility"
|
|
|
|
|
|
|
|
"test_encode_decode"
|
|
|
|
"test_legacy_codec_broken"
|
|
|
|
"test_bytes"
|
|
|
|
];
|
2019-07-17 23:10:50 +01:00
|
|
|
|
|
|
|
meta = with lib;{
|
2021-09-06 12:10:09 +01:00
|
|
|
homepage = "https://github.com/zarr-developers/numcodecs";
|
2019-07-17 23:10:50 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "Buffer compression and transformation codecs for use in data storage and communication applications";
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|