diff --git a/pkgs/development/python-modules/h5netcdf/default.nix b/pkgs/development/python-modules/h5netcdf/default.nix index 23a8c4ddcb26..7afa664c1a85 100644 --- a/pkgs/development/python-modules/h5netcdf/default.nix +++ b/pkgs/development/python-modules/h5netcdf/default.nix @@ -6,23 +6,24 @@ , pytestCheckHook , netcdf4 , pythonOlder +, setuptools-scm }: buildPythonPackage rec { pname = "h5netcdf"; - version = "0.8.1"; + version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "09bbnpsvwksb07wijn7flyyza56h5b2g2cw0hb3slmwxz6cgcjmr"; + hash = "sha256-d2cE+s2LgiRtbUBoxQXDibO3C5v5kgzPusfzXNxjTaw="; }; - patches = [ - (fetchpatch{ - url = "https://patch-diff.githubusercontent.com/raw/h5netcdf/h5netcdf/pull/82.patch"; - sha256 = "0x9bq9jl4kvw152adkpcyqslhpi7miv80hrnpl2w2y798mmbs0s4"; - }) - ]; + nativeBuildInputs = [ + setuptools-scm + ]; propagatedBuildInputs = [ h5py @@ -33,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; [ ]; }; - }