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

52 lines
955 B
Nix
Raw Normal View History

{ lib
, asciitree
, buildPythonPackage
, fasteners
, fetchPypi
, numcodecs
, numpy
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "zarr";
version = "2.14.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-aOxZuOvfxP7l4yvWwM4nP3L31O0BdFS0UyfGc8YJB7w=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
asciitree
numpy
fasteners
numcodecs
];
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; [ costrouc ];
};
}