diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-19 21:35:13 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-19 22:06:36 +0100 |
| commit | f9aa8104026363b9eecc009b2570e3814d05c9b1 (patch) | |
| tree | 2f69d9588d8a87c74dab566b62f8a411c0dd7061 /gnu/packages/python-xyz.scm | |
| parent | 293beaaaa31d4cfcb548bfa9229de24cce1e4433 (diff) | |
gnu: python-netcdf4: Update to 1.6.2.
* gnu/packages/python-xyz.scm (python-netcdf4): Update to 1.6.2.
[build-system]: Use pyproject.
[arguments] <phases>: Remove 'configure-locations; add
set-configure-flags; use custom 'check.
[inputs]: Remove hdf4; add zlib.
[native-inputs]: Remove python-cython; add python-cython-3,
python-setuptools, and python-wheel.
Change-Id: Ie4e13538c2e5ad8d06055b7c3a4692c26c03e8da
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index db16426d39..4f0e84babf 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4236,28 +4236,44 @@ of the netcdf4 package before.") (define-public python-netcdf4 (package (name "python-netcdf4") - (version "1.6.0") + (version "1.6.2") (source (origin (method url-fetch) (uri (pypi-uri "netCDF4" version)) (sha256 (base32 - "0qxs8r1qmsmg760wm5q0wqlcm7hdd3k7cghryw6wvqd3v5rs7vwm")))) - (build-system python-build-system) + "0lxfykqdkpbmqma72m2mhwdz8lgl83n5vj7ydygl3252yqpv10h3")))) + (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'configure-locations + (add-before 'build 'set-configure-flags (lambda _ - (setenv "HDF5_DIR" #$(this-package-input "hdf5"))))))) + (setenv "CFLAGS" (string-join + (list "-Wno-error=incompatible-pointer-types" + "-Wno-error=implicit-function-declaration" + "-Wno-error=int-conversion") + " ")) + (setenv "HDF5_DIR" #$(this-package-input "hdf5")) + (setenv "NETCDF4_DIR" #$(this-package-input "netcdf")) + (setenv "USE_NCCONFIG" "0"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "test" + (setenv "NO_NET" "1") + (setenv "NO_CDL" "1") + (invoke "python" "run_all.py")))))))) (native-inputs - (list python-cython)) + (list python-cython-3 + python-setuptools + python-wheel)) (propagated-inputs (list python-numpy python-cftime)) (inputs - (list netcdf hdf4 hdf5)) + (list netcdf hdf5 zlib)) (home-page "https://github.com/Unidata/netcdf4-python") (synopsis "Python/numpy interface to the netCDF library") (description "Netcdf4-python is a Python interface to the netCDF C |
