Files
nixpkgs/pkgs/development/python-modules/numcodecs/default.nix
T

58 lines
1009 B
Nix
Raw Normal View History

2019-07-17 18:10:50 -04:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
2019-07-17 18:10:50 -04:00
, setuptools_scm
, cython
, numpy
, msgpack
, pytestCheckHook
2019-07-17 18:10:50 -04:00
, python
2019-11-07 01:04:17 +01:00
, gcc8
2019-07-17 18:10:50 -04:00
}:
buildPythonPackage rec {
pname = "numcodecs";
2021-02-20 10:09:12 +01:00
version = "0.7.3";
disabled = isPy27;
2019-07-17 18:10:50 -04:00
src = fetchPypi {
inherit pname version;
2021-02-20 10:09:12 +01:00
sha256 = "022b12ad83eb623ec53f154859d49f6ec43b15c36052fa864eaf2d9ee786dd85";
2019-07-17 18:10:50 -04:00
};
nativeBuildInputs = [
setuptools_scm
cython
2019-11-07 01:04:17 +01:00
gcc8
2019-07-17 18:10:50 -04:00
];
propagatedBuildInputs = [
numpy
msgpack
];
checkInputs = [
pytestCheckHook
2019-07-17 18:10:50 -04:00
];
pytestFlagsArray = [
"$out/${python.sitePackages}/numcodecs"
];
disabledTests = [
"test_backwards_compatibility"
"test_encode_decode"
"test_legacy_codec_broken"
"test_bytes"
];
2019-07-17 18:10:50 -04:00
meta = with lib;{
homepage = "https://github.com/alimanfoo/numcodecs";
2019-07-17 18:10:50 -04:00
license = licenses.mit;
description = "Buffer compression and transformation codecs for use in data storage and communication applications";
maintainers = [ maintainers.costrouc ];
};
}