2019-07-17 23:10:50 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
, msgpack
|
|
|
|
, pytest
|
|
|
|
, python
|
2019-11-07 00:04:17 +00:00
|
|
|
, gcc8
|
2019-07-17 23:10:50 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "numcodecs";
|
2019-11-11 11:13:38 +00:00
|
|
|
version = "0.6.4";
|
2019-07-17 23:10:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-11 11:13:38 +00:00
|
|
|
sha256 = "ef4843d5db4d074e607e9b85156835c10d006afc10e175bda62ff5412fca6e4d";
|
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 = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest $out/${python.sitePackages}/numcodecs -k "not test_backwards_compatibility"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib;{
|
|
|
|
homepage = https://github.com/alimanfoo/numcodecs;
|
|
|
|
license = licenses.mit;
|
|
|
|
description = "Buffer compression and transformation codecs for use in data storage and communication applications";
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|