depot/third_party/nixpkgs/pkgs/development/python-modules/h5netcdf/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

53 lines
931 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, h5py
, pytestCheckHook
, netcdf4
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "h5netcdf";
version = "1.2.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-f2snM73gbqJXW3mmRQ2b1cOJGP9MsqNVvyK76Mhsa88=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
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; [ ];
};
}