2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-09 12:39:15 +00:00
|
|
|
, fetchpatch
|
2020-05-29 06:06:01 +00:00
|
|
|
, h5py
|
|
|
|
, pytestCheckHook
|
|
|
|
, netcdf4
|
|
|
|
, pythonOlder
|
2022-07-14 12:49:19 +00:00
|
|
|
, setuptools-scm
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "h5netcdf";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.1.0";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-kyw7Vzvtc3Dr/J6ALNYPGk2lI277EbNu7/iXMk12v1Y=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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
|
|
|
}
|