nixpkgs/pkgs/development/python-modules/zarr/default.nix
2021-10-28 00:53:37 +00:00

48 lines
802 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, setuptools-scm
, asciitree
, numpy
, fasteners
, numcodecs
, pytest
}:
buildPythonPackage rec {
pname = "zarr";
version = "2.10.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "5c6ae914ab9215631bb95c09e76b9b9b4fffa70fec0c7bca26b68387d858ebe2";
};
nativeBuildInputs = [
setuptools-scm
];
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";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}