diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-03-01 10:45:01 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-03 23:57:11 +0100 |
commit | 33bd90d82c58fd53be9d6954ebb1d01abb2442ff (patch) | |
tree | 164449a66834294864bccc44e5b3a43fc36f01f4 | |
parent | ab6528f30099a3d02f6338597f020bac2ff43748 (diff) |
python310Packages.zarr: switch to pytestCheckHook
- add pythonImportsCheck
-rw-r--r-- | pkgs/development/python-modules/zarr/default.nix | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/zarr/default.nix b/pkgs/development/python-modules/zarr/default.nix index 03048aa92db1d..43ccf906ad781 100644 --- a/pkgs/development/python-modules/zarr/default.nix +++ b/pkgs/development/python-modules/zarr/default.nix @@ -1,13 +1,13 @@ { lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools-scm , asciitree -, numpy +, buildPythonPackage , fasteners +, fetchPypi , numcodecs -, pytest +, numpy +, pytestCheckHook +, pythonOlder +, setuptools-scm }: buildPythonPackage rec { @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "sha256-aOxZuOvfxP7l4yvWwM4nP3L31O0BdFS0UyfGc8YJB7w="; + hash = "sha256-aOxZuOvfxP7l4yvWwM4nP3L31O0BdFS0UyfGc8YJB7w="; }; nativeBuildInputs = [ @@ -34,12 +34,12 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - pytest + pytestCheckHook ]; - checkPhase = '' - pytest - ''; + pythonImportsCheck = [ + "zarr" + ]; meta = with lib; { description = "An implementation of chunked, compressed, N-dimensional arrays for Python"; |