summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-08-11 14:58:23 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-08-11 15:02:48 +0100
commit92d6dc8547141126c635fe5e5df33d916e638f0d (patch)
tree37a3e3032439fa24e9e0cf749a11b09ce62267fe /gnu/packages/python-xyz.scm
parent7fa2623a86a55d19e77d95f6c360e7ebc2c96bef (diff)
gnu: python-netcdf4: Update to 1.7.4, build with MPI support.
* gnu/packages/python-xyz.scm (python-netcdf4): Update to 1.7.4. [phases]{set-configure-flags}: Drop CFLAGS. [inputs]: Remove netcdf and hdf5; add netcdf-parallel-openmpi and hdf5-parallel-openmpi. [propagated-inputs]: Add python-mpi4py. Fixes: guix/guix#10488
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm23
1 files changed, 11 insertions, 12 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a3822c82e93..34cdfd2467b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6892,9 +6892,10 @@ of the netcdf4 package before.")
6892 (license license:expat))) 6892 (license license:expat)))
6893 6893
6894(define-public python-netcdf4 6894(define-public python-netcdf4
6895 ;; TODO: Move to (gnu packages python-science).
6895 (package 6896 (package
6896 (name "python-netcdf4") 6897 (name "python-netcdf4")
6897 (version "1.7.2") 6898 (version "1.7.4")
6898 (source 6899 (source
6899 (origin 6900 (origin
6900 (method git-fetch) 6901 (method git-fetch)
@@ -6903,22 +6904,16 @@ of the netcdf4 package before.")
6903 (commit (string-append "v" version "rel")))) 6904 (commit (string-append "v" version "rel"))))
6904 (file-name (git-file-name name version)) 6905 (file-name (git-file-name name version))
6905 (sha256 6906 (sha256
6906 (base32 "1bq0dkgq795z00j5z4xi1dqqw0chaj5j80hg5nci1piyr2ic41v9")))) 6907 (base32 "0lmapnqc4rivv0nggm8865xpni1gbcg6dc7khf5r0p16jk8gv41c"))))
6907 (build-system pyproject-build-system) 6908 (build-system pyproject-build-system)
6908 (arguments 6909 (arguments
6909 (list 6910 (list
6910 ;; tests: Ran 113 tests; skipped=7 6911 ;; tests: Ran 115 tests
6911 #:phases 6912 #:phases
6912 #~(modify-phases %standard-phases 6913 #~(modify-phases %standard-phases
6913 (add-before 'build 'set-configure-flags 6914 (add-before 'build 'set-configure-flags
6914 (lambda _ 6915 (lambda _
6915 (setenv "CFLAGS" (string-join 6916 (setenv "HDF5_DIR" #$(this-package-input "hdf5-parallel-openmpi"))
6916 (list "-g -O2"
6917 "-Wno-error=incompatible-pointer-types"
6918 "-Wno-error=implicit-function-declaration"
6919 "-Wno-error=int-conversion")
6920 " "))
6921 (setenv "HDF5_DIR" #$(this-package-input "hdf5"))
6922 (setenv "JPEG_DIR" #$(this-package-input "libjpeg-turbo")) 6917 (setenv "JPEG_DIR" #$(this-package-input "libjpeg-turbo"))
6923 (setenv "NETCDF4_DIR" #$(this-package-input "netcdf")) 6918 (setenv "NETCDF4_DIR" #$(this-package-input "netcdf"))
6924 (setenv "USE_NCCONFIG" "0"))) 6919 (setenv "USE_NCCONFIG" "0")))
@@ -6937,12 +6932,16 @@ of the netcdf4 package before.")
6937 python-setuptools-scm 6932 python-setuptools-scm
6938 python-typing-extensions)) 6933 python-typing-extensions))
6939 (inputs 6934 (inputs
6940 (list netcdf 6935 ;; After python-h5py was built with MPI support it can't be used together
6941 hdf5 6936 ;; with hdf5 and netcdf built without MPI support tests and load may
6937 ;; brake when python-netcdf4 and python-h5py are used together.
6938 (list netcdf-parallel-openmpi
6939 hdf5-parallel-openmpi
6942 zlib)) 6940 zlib))
6943 (propagated-inputs 6941 (propagated-inputs
6944 (list python-certifi 6942 (list python-certifi
6945 python-cftime 6943 python-cftime
6944 python-mpi4py
6946 python-numpy)) 6945 python-numpy))
6947 (home-page "https://github.com/Unidata/netcdf4-python") 6946 (home-page "https://github.com/Unidata/netcdf4-python")
6948 (synopsis "Python/numpy interface to the netCDF library") 6947 (synopsis "Python/numpy interface to the netCDF library")