57 lines
1,009 B
Nix
57 lines
1,009 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, setuptools-scm
|
|
, cython
|
|
, numpy
|
|
, msgpack
|
|
, pytestCheckHook
|
|
, python
|
|
, gcc8
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "numcodecs";
|
|
version = "0.8.0";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7c7d0ea56b5e2a267ae785bdce47abed62829ef000f03be8e32e30df62d3749c";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
cython
|
|
gcc8
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
msgpack
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"$out/${python.sitePackages}/numcodecs"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_backwards_compatibility"
|
|
|
|
"test_encode_decode"
|
|
"test_legacy_codec_broken"
|
|
"test_bytes"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|