diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-09 13:44:30 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:18:21 +0100 |
| commit | d7572ac7e1d711744ff5515aef0f3a753ec61402 (patch) | |
| tree | 3ba222e0eb79966c571c03229e58f09eb07d0376 /gnu/packages/python-xyz.scm | |
| parent | f48805713f900b1e2832dc1078198b35e356a5c7 (diff) | |
gnu: python-netcdf4: Update to 1.7.2.
* gnu/packages/python-xyz.scm (python-netcdf4): Update to 1.7.2.
[source]: Switch to git-fetch.
[phases]{set-configure-flags}: Add "-g -O2" options and set JPEG_DIR.
[propagated-inputs]: Add python-certifi.
[native-inputs]: Remove python-wheel; add python-packaging,
python-pytest, python-setuptools-scm, and python-typing-extensions.
Change-Id: I7e50f12623f3fc0afc42679a7dbc71286a0a3be1
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 154b2321f7f..65e881cfae5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5415,27 +5415,32 @@ of the netcdf4 package before.") (define-public python-netcdf4 (package (name "python-netcdf4") - (version "1.6.2") + (version "1.7.2") (source (origin - (method url-fetch) - (uri (pypi-uri "netCDF4" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/Unidata/netcdf4-python") + (commit (string-append "v" version "rel")))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0lxfykqdkpbmqma72m2mhwdz8lgl83n5vj7ydygl3252yqpv10h3")))) + (base32 "1bq0dkgq795z00j5z4xi1dqqw0chaj5j80hg5nci1piyr2ic41v9")))) (build-system pyproject-build-system) (arguments (list + ;; tests: Ran 113 tests; skipped=7 #:phases #~(modify-phases %standard-phases (add-before 'build 'set-configure-flags (lambda _ (setenv "CFLAGS" (string-join - (list "-Wno-error=incompatible-pointer-types" + (list "-g -O2" + "-Wno-error=incompatible-pointer-types" "-Wno-error=implicit-function-declaration" "-Wno-error=int-conversion") " ")) (setenv "HDF5_DIR" #$(this-package-input "hdf5")) + (setenv "JPEG_DIR" #$(this-package-input "libjpeg-turbo")) (setenv "NETCDF4_DIR" #$(this-package-input "netcdf")) (setenv "USE_NCCONFIG" "0"))) (replace 'check @@ -5447,12 +5452,19 @@ of the netcdf4 package before.") (invoke "python" "run_all.py")))))))) (native-inputs (list python-cython + python-packaging + python-pytest python-setuptools - python-wheel)) - (propagated-inputs - (list python-numpy python-cftime)) + python-setuptools-scm + python-typing-extensions)) (inputs - (list netcdf hdf5 zlib)) + (list netcdf + hdf5 + zlib)) + (propagated-inputs + (list python-certifi + python-cftime + python-numpy)) (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 |
