2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
h5py,
|
|
|
|
pytestCheckHook,
|
|
|
|
netcdf4,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h5netcdf";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.3.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-oXHAJ9rrNLJMJKO2MEGVuOq7tvEMdIJW7Tz+GYBjg88=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
2023-05-24 13:37:59 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ h5py ];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-05-29 06:06:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
netcdf4
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "h5netcdf" ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-05-29 06:06:01 +00:00
|
|
|
description = "netCDF4 via h5py";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/shoyer/h5netcdf";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|