From d7572ac7e1d711744ff5515aef0f3a753ec61402 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 9 Dec 2025 13:44:30 +0000 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 154b2321f7f5d1c82ad91c75065303edc78cf295..65e881cfae51a122b8bd2955206eb4bd3b956eb9 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