depot/third_party/nixpkgs/pkgs/development/python-modules/zarr/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

47 lines
973 B
Nix

{
lib,
asciitree,
buildPythonPackage,
fasteners,
fetchPypi,
numcodecs,
msgpack,
numpy,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "zarr";
version = "2.18.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-m7OTuKCjj7Eh27kTsEfXXbKN6YkPbWRKIXpzz0rnT0c=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
asciitree
numpy
fasteners
numcodecs
] ++ numcodecs.optional-dependencies.msgpack;
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "zarr" ];
meta = with lib; {
description = "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 = [ ];
};
}