mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
python312Packages.zarr: modernize
Use build-system & dependencies attributes; Don't use `with lib;` in meta, and order inputs.
This commit is contained in:
parent
a61172f734
commit
0e3338f16f
@ -1,15 +1,20 @@
|
||||
{
|
||||
lib,
|
||||
asciitree,
|
||||
buildPythonPackage,
|
||||
fasteners,
|
||||
fetchPypi,
|
||||
numcodecs,
|
||||
msgpack,
|
||||
numpy,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
|
||||
# build-system
|
||||
setuptools-scm,
|
||||
|
||||
# dependencies
|
||||
asciitree,
|
||||
numpy,
|
||||
fasteners,
|
||||
numcodecs,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -24,24 +29,28 @@ buildPythonPackage rec {
|
||||
hash = "sha256-JYDYy23YRiF3GhDTHE13fcqKJ3BqGomyn0LS034t9c4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
build-system = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
asciitree
|
||||
numpy
|
||||
fasteners
|
||||
numcodecs
|
||||
] ++ numcodecs.optional-dependencies.msgpack;
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "zarr" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
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 = [ ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user