summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2022-07-22 12:44:37 +0100
committerGuix Patches Tester <>2022-07-22 13:22:21 +0100
commit9f224b5183962055343b4ae0baef724d5bd89d9a (patch)
tree03a2ea79300f74eff50c4932594f7656105d6fd0
parent7f40cd8231598d4fed2ecc1582765dbd6e16e65c (diff)
downloadguix-patches-9f224b5183962055343b4ae0baef724d5bd89d9a.tar
guix-patches-9f224b5183962055343b4ae0baef724d5bd89d9a.tar.gz
gnu: Add h5netcdf
* gnu/packages/python-xyz.scm: (python-h5netcdf): New variable.
-rw-r--r--gnu/packages/python-xyz.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index afb7798a5c..93935d3b03 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1481,6 +1481,37 @@ NetCDF files can also be read and modified. Python-HDF4 is a fork of
@url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
(license license:expat)))
+(define-public python-h5netcdf
+ (package
+ (name "python-h5netcdf")
+ (version "1.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "h5netcdf" version))
+ (sha256
+ (base32 "1b2dcgf5rwy7pb7hr4prkc5vgcw9qc2was20dmnj90lbrpx08rvp"))))
+ (build-system python-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "h5netcdf/tests")))))))
+ (native-inputs
+ (list python-netcdf4
+ python-pytest
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-h5py python-packaging))
+ (home-page "https://h5netcdf.org")
+ (synopsis "Python interface for the netCDF4 file-format based on h5py")
+ (description "This package provides Python interface for the netCDF4
+file-format that reads and writes local or remote HDF5 files directly via h5py
+or h5pyd, without relying on the Unidata netCDF library")
+ (license license:bsd-3)))
+
(define-public python-h5py
(package
(name "python-h5py")