From 4cba72c31076d05073a7a0cd3a08712f1d5e939e Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Fri, 21 Aug 2026 12:43:01 +0200 Subject: physics: python-fabio: Update to 2026.06. * guix-science/packages/physics.scm (python-fabio) [source]: Update to 2026.06. [arguments]<#:phases>: Patch the test suite to avoid importing all optional dependencies. Run 'check phase after 'add-install-to-pythonpath. [propagated-inputs]: Add python-filelock. Remove python-{glymur,matplotlib, pillow,pyside-6}. [native-inputs]: Move python-numexpr from propagated-inputs. --- guix-science/packages/physics.scm | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/guix-science/packages/physics.scm b/guix-science/packages/physics.scm index 42d1b2a..860d7c8 100644 --- a/guix-science/packages/physics.scm +++ b/guix-science/packages/physics.scm @@ -929,7 +929,7 @@ codes.") (define-public python-fabio (package (name "python-fabio") - (version "2025.10.0") + (version "2026.06") (source (origin (method git-fetch) @@ -938,28 +938,33 @@ codes.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "16f8dfg01j3m7l3npghmslhd44glrj2wk3frwhc1avqxpp4n0a6m")))) + (base32 "0ymgv7vz030id88x140f7mmv17my40jb0zzz1ad5d72vvfch9xax")))) (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'skip-test-import-all + (lambda _ + (substitute* (list "src/fabio/test/meson.build" + "src/fabio/test/test_all.py") + ((".*test_import.*") + "")))) + + ;; Requires install first. (delete 'check) - (add-after 'install 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) + + (add-after 'add-install-to-pythonpath 'check + (lambda* (#:key tests? #:allow-other-keys) (when tests? - (add-installed-pythonpath inputs outputs) (invoke "python3" "run_tests.py" "--installed"))))))) - (propagated-inputs (list python-glymur + (propagated-inputs (list python-filelock python-h5py python-hdf5plugin python-lxml - python-matplotlib - python-numexpr python-numpy - python-pillow - python-pyside-6)) - (native-inputs (list python-meson ninja python-cython + python-pillow)) + (native-inputs (list ninja python-cython python-meson python-numexpr python-pyproject-metadata)) (home-page "https://www.silx.org/doc/fabio/latest") (synopsis "I/O library for images produced by 2D X-ray detectors") -- cgit v1.2.3