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