94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
52 lines
917 B
Nix
52 lines
917 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, h5py
|
|
, pytestCheckHook
|
|
, netcdf4
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "h5netcdf";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-kyw7Vzvtc3Dr/J6ALNYPGk2lI277EbNu7/iXMk12v1Y=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
h5py
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
netcdf4
|
|
];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
pythonImportsCheck = [
|
|
"h5netcdf"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "netCDF4 via h5py";
|
|
homepage = "https://github.com/shoyer/h5netcdf";
|
|
changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|