diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-14 14:54:29 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:18:06 +0100 |
| commit | c3942b7debfebb30fc64d1c998007cb38cf3733e (patch) | |
| tree | 8177a88b54d010198c6f0da72f1bf28ea353d05d /gnu/packages/python-xyz.scm | |
| parent | 9f8566272941e39d6c9e29349fb413f8e19c1a1f (diff) | |
gnu: python-h5py: Update to 3.15.1.
* gnu/packages/python-xyz.scm (python-h5py): Update to 3.15.1.
[arguments] <test-flags>: Skip test recruiting the build with MPI
support.
<phases>: Remove 'relax-gcc-14-strictness; do not delete/implement custom
'check, use default.
[propagated-inputs]: Remove python-six.
[native-inputs]: Remove python-ipython, python-pytest-mpi, and
python-wheel.
Change-Id: Iee3bdaa9f3950404791e770ee600da1650842496
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1e4acc17a08..d8a67ead00f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5044,48 +5044,44 @@ library.") (define-public python-h5py (package (name "python-h5py") - (version "3.13.0") + (version "3.15.1") (source (origin (method url-fetch) (uri (pypi-uri "h5py" version)) (sha256 - (base32 "1hq5f5mnkv2138xsq7k7qncf6b7zc0cmm2fhhpd2603j31jy8w0q")))) + (base32 "0sbbw9100f2763czngbpg1jxisp5r5pkpa2swm6mcws4bka3wvn8")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 800 passed, 18 skipped, 4 deselected, 12 warnings + #:test-flags + ;; Tests requiring the build with MPI. + #~(list "-k" (string-append "not test_mpio" + " and not test_mpio_append" + " and not test_mpi_atomic" + " and not test_close_multiple_mpio_driver")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-hdf5-paths (lambda _ (setenv "HDF5_DIR" #$(this-package-input "hdf5")))) - ;; The tests only work after being installed. - (delete 'check) - (add-after 'install 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) (when tests? (setenv "H5PY_TEST_CHECK_FILTERS" "1") - (with-directory-excursion (site-packages inputs outputs) - (invoke "pytest" "-vv"))))) - (add-before 'build 'relax-gcc-14-strictness - (lambda _ - (setenv - "CFLAGS" - (string-append - "-g -O2" - `" -Wno-error=incompatible-pointer-types"))))))) - (propagated-inputs (list python-six python-numpy)) - (inputs (list hdf5)) + (with-directory-excursion #$output + (apply invoke "pytest" "-vv" test-flags)))))))) (native-inputs (list pkg-config python-cython - python-ipython python-pkgconfig python-pytest - ;; Required to run tests, but the MPI tests are skipped anyway. - python-pytest-mpi - python-setuptools - python-wheel)) + python-setuptools)) + (inputs + (list hdf5)) + (propagated-inputs + (list python-numpy)) (home-page "https://www.h5py.org/") (synopsis "Read and write HDF5 files from Python") (description |
