guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit dead6e523a4a955b44d3ba07da4f5e585f17e20f
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Dec 9 13:44:30 2025 +0000

    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
---
 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 2f3b3d3a9a..fb0b213e6d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5369,27 +5369,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
@@ -5401,12 +5406,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

Reply via email to