nixpkgs/pkgs/development/python-modules/numcodecs/default.nix
2019-11-12 14:57:20 +01:00

45 lines
847 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, cython
, numpy
, msgpack
, pytest
, python
}:
buildPythonPackage rec {
pname = "numcodecs";
version = "0.6.4";
src = fetchPypi {
inherit pname version;
sha256 = "ef4843d5db4d074e607e9b85156835c10d006afc10e175bda62ff5412fca6e4d";
};
nativeBuildInputs = [
setuptools_scm
cython
];
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 ];
};
}