mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
53 lines
999 B
Nix
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; [ ];
|
|
};
|
|
}
|