nixpkgs/pkgs/development/python-modules/h5netcdf/default.nix
2023-05-15 01:13:30 +02:00

53 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; [ ];
};
}