nixpkgs/pkgs/development/python-modules/zarr/default.nix
2022-07-21 22:35:23 +02:00

49 lines
789 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, setuptools-scm
, asciitree
, numpy
, fasteners
, numcodecs
, pytest
}:
buildPythonPackage rec {
pname = "zarr";
version = "2.12.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-UVox7kuta7SK4FF4xYiuSaAqNd76Ad2aMpMwaQM2gWU=";
};
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 ];
};
}