nixpkgs/pkgs/development/python-modules/zarr/default.nix
2023-12-20 20:46:30 +01:00

53 lines
999 B
Nix

{ lib
, asciitree
, buildPythonPackage
, fasteners
, fetchPypi
, numcodecs
, msgpack
, numpy
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "zarr";
version = "2.16.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-QnbPS0plNDEELNU/8igrxNKSpoQkEeiFKZZFBPsHMoY=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
asciitree
numpy
fasteners
numcodecs
] ++ numcodecs.optional-dependencies.msgpack;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"zarr"
];
meta = with lib; {
description = "An implementation of chunked, compressed, N-dimensional arrays for Python";
homepage = "https://github.com/zarr-developers/zarr";
changelog = "https://github.com/zarr-developers/zarr-python/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}