nixpkgs/pkgs/development/python-modules/zarr/default.nix

49 lines
802 B
Nix
Raw Normal View History

2019-07-18 15:37:12 +02:00
{ lib
, buildPythonPackage
, isPy27
2019-07-18 15:37:12 +02:00
, fetchPypi
, setuptools-scm
2019-07-18 15:37:12 +02:00
, asciitree
, numpy
, fasteners
, numcodecs
, pytest
}:
buildPythonPackage rec {
pname = "zarr";
version = "2.10.1";
disabled = isPy27;
2019-07-18 15:37:12 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "29e90114f037d433752b3cf951e4a3cb6c6f67b6501a273439b4be4a824e4caf";
2019-07-18 15:37:12 +02:00
};
nativeBuildInputs = [
setuptools-scm
2019-07-18 15:37:12 +02:00
];
propagatedBuildInputs = [
asciitree
numpy
fasteners
numcodecs
];
checkInputs = [
pytest
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "An implementation of chunked, compressed, N-dimensional arrays for Python";
homepage = "https://github.com/zarr-developers/zarr";
2019-07-18 15:37:12 +02:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}