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-06-18 22:47:27 +01:00
|
|
|
version = "0.8.0";
|
2020-10-16 08:12:21 +01:00
|
|
|
disabled = isPy27;
|
2019-07-17 23:10:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:27 +01:00
|
|
|
sha256 = "7c7d0ea56b5e2a267ae785bdce47abed62829ef000f03be8e32e30df62d3749c";
|
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;{
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/alimanfoo/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 ];
|
|
|
|
};
|
|
|
|
}
|