diff --git a/pkgs/development/python-modules/h5netcdf/default.nix b/pkgs/development/python-modules/h5netcdf/default.nix index 30693abfd054..722f5b17a8f8 100644 --- a/pkgs/development/python-modules/h5netcdf/default.nix +++ b/pkgs/development/python-modules/h5netcdf/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, h5py, pytestCheckHook, netcdf4, @@ -12,22 +12,22 @@ buildPythonPackage rec { pname = "h5netcdf"; - version = "1.4.1"; - format = "pyproject"; + version = "1.5.0"; + pyproject = true; - disabled = pythonOlder "3.9"; - - src = fetchPypi { - inherit pname version; - hash = "sha256-fIQBq4B/83yXmO3JDZlGdZWJLmxUGl1avrj1OqtTNf4="; + src = fetchFromGitHub { + owner = "h5netcdf"; + repo = "h5netcdf"; + tag = "v${version}"; + hash = "sha256-fhLL8/XgYQmdHckh5xhYvnlc+MTIc2wcTOZaohFFGlk="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm ]; - propagatedBuildInputs = [ h5py ]; + dependencies = [ h5py ]; nativeCheckInputs = [ pytestCheckHook @@ -39,9 +39,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "h5netcdf" ]; meta = with lib; { - description = "netCDF4 via h5py"; + description = "Pythonic interface to netCDF4 via h5py"; homepage = "https://github.com/shoyer/h5netcdf"; - changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/v${version}"; + changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/${src.tag}"; license = licenses.bsd3; maintainers = [ ]; };