1{ lib
2, buildPythonPackage
3, fetchPypi
4, h5py
5, pytestCheckHook
6, netcdf4
7, pythonOlder
8, setuptools
9, setuptools-scm
10}:
11
12buildPythonPackage rec {
13 pname = "h5netcdf";
14 version = "1.2.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-f2snM73gbqJXW3mmRQ2b1cOJGP9MsqNVvyK76Mhsa88=";
22 };
23
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
26 nativeBuildInputs = [
27 setuptools
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [
32 h5py
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 netcdf4
38 ];
39
40 dontUseSetuptoolsCheck = true;
41
42 pythonImportsCheck = [
43 "h5netcdf"
44 ];
45
46 meta = with lib; {
47 description = "netCDF4 via h5py";
48 homepage = "https://github.com/shoyer/h5netcdf";
49 changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/v${version}";
50 license = licenses.bsd3;
51 maintainers = with maintainers; [ ];
52 };
53}