From d56221e143ab92187738ffa613d4a0b65d9db7b2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Jul 2022 11:01:09 +0200 Subject: [PATCH] python310Packages.h5netcdf: add pythonImportsCheck --- .../python-modules/h5netcdf/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/h5netcdf/default.nix b/pkgs/development/python-modules/h5netcdf/default.nix index 26902e09aaca..7afa664c1a85 100644 --- a/pkgs/development/python-modules/h5netcdf/default.nix +++ b/pkgs/development/python-modules/h5netcdf/default.nix @@ -12,10 +12,13 @@ buildPythonPackage rec { pname = "h5netcdf"; version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-d2cE+s2LgiRtbUBoxQXDibO3C5v5kgzPusfzXNxjTaw="; + hash = "sha256-d2cE+s2LgiRtbUBoxQXDibO3C5v5kgzPusfzXNxjTaw="; }; nativeBuildInputs = [ @@ -31,14 +34,16 @@ buildPythonPackage rec { netcdf4 ]; - disabled = pythonOlder "3.6"; - dontUseSetuptoolsCheck = true; - meta = { + pythonImportsCheck = [ + "h5netcdf" + ]; + + meta = with lib; { description = "netCDF4 via h5py"; homepage = "https://github.com/shoyer/h5netcdf"; - license = lib.licenses.bsd3; + license = licenses.bsd3; + maintainers = with maintainers; [ ]; }; - }