2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, h5py
|
|
|
|
, pytestCheckHook
|
|
|
|
, netcdf4
|
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2022-07-14 12:49:19 +00:00
|
|
|
, setuptools-scm
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h5netcdf";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.2.0";
|
|
|
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-f2snM73gbqJXW3mmRQ2b1cOJGP9MsqNVvyK76Mhsa88=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
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
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-05-29 06:06:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
netcdf4
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"h5netcdf"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
}
|