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";
2020-10-16 05:57:43 +00:00
version = "0.7.2";
disabled = isPy27;
2019-07-17 18:10:50 -04:00
src = fetchPypi {
inherit pname version;
2020-10-16 05:57:43 +00:00
sha256 = "4a038064d5604e6181a64db668d7b700d9ae87e4041984c04cbf0042469664b0";
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 ];
};
}