2019-07-17 23:10:50 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-16 08:12:21 +01:00
|
|
|
, isPy27
|
2019-07-17 23:10:50 +01:00
|
|
|
, setuptools_scm
|
|
|
|
, 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";
|
2020-10-16 06:57:43 +01:00
|
|
|
version = "0.7.2";
|
2020-10-16 08:12:21 +01:00
|
|
|
disabled = isPy27;
|
2019-07-17 23:10:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-16 06:57:43 +01:00
|
|
|
sha256 = "4a038064d5604e6181a64db668d7b700d9ae87e4041984c04cbf0042469664b0";
|
2019-07-17 23:10:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|