Skip to content

Commit

Permalink
python312Packages.zarr: modernize
Browse files Browse the repository at this point in the history
Use build-system & dependencies attributes; Don't use `with lib;` in
meta, and order inputs.
  • Loading branch information
doronbehar committed Oct 31, 2024
1 parent 773c280 commit cc6e0cf
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions pkgs/development/python-modules/zarr/default.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 ];
};
}

0 comments on commit cc6e0cf

Please sign in to comment.