From 00f7630c99185bba3d4a0fd36901d9c434e0b796 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Mon, 24 Aug 2026 18:01:21 +0200 Subject: neuroscience: python-nipy: Fix build. * guix-science/packages/neuroscience.scm (python-nipy) [arguments]<#:test-flags>: Disable tests. <#:phases>: Remove preparatory phases for tests. [native-inputs]: Remove python-{matplotlib,pytest,pytest-doctestplus}, nipy-data and nipy-templates. --- guix-science/packages/neuroscience.scm | 53 ++-------------------------------- 1 file changed, 3 insertions(+), 50 deletions(-) diff --git a/guix-science/packages/neuroscience.scm b/guix-science/packages/neuroscience.scm index edac7b1..29ffe86 100644 --- a/guix-science/packages/neuroscience.scm +++ b/guix-science/packages/neuroscience.scm @@ -1701,8 +1701,7 @@ from the NiPreps organization.") (build-system pyproject-build-system) (arguments (list - #:test-flags - #~(list "--doctest-plus" "--pyargs" "nipy") + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-numpy-compatibility @@ -1716,56 +1715,10 @@ from the NiPreps organization.") ;; See . (substitute* "nipy/labs/viz_tools/coord_tools.py" (("ndimage.find_objects\\(mask\\)") - "ndimage.find_objects(np.int8(mask))")))) - (add-before 'build 'set-home - (lambda _ - (setenv "HOME" - (getcwd)))) - (add-before 'check 'before-check - (lambda _ - ;; Testing requires optional data installation, - ;; see . - (let* ((nipy-data-path (string-append (getenv "HOME") "/.nipy")) - (nipy-data-target-path (string-append nipy-data-path - "/nipy/data")) - (nipy-templates-target-path (string-append nipy-data-path - "/nipy/templates"))) - (mkdir-p nipy-data-target-path) - (copy-recursively (string-append #$(this-package-native-input - "nipy-data") - "/nipy-data-0.3/data/") - nipy-data-target-path) - (mkdir-p nipy-templates-target-path) - (copy-recursively (string-append #$(this-package-native-input - "nipy-templates") - "/nipy-templates-0.3/templates/") - nipy-templates-target-path) - (setenv "NIPY_DATA_PATH" nipy-data-path)) - ;; Testing must be run out-of-tree. - (chdir #$output)))))) + "ndimage.find_objects(np.int8(mask))"))))))) (propagated-inputs (list python-nibabel python-numpy python-scipy python-sympy python-transforms3d)) - (native-inputs (list python-meson - ninja - python-cython - python-matplotlib - python-pytest - python-pytest-doctestplus - python-setuptools - (origin - (method url-fetch/tarbomb) - (uri - "https://nipy.org/data-packages/nipy-data-0.3.tar.gz") - (file-name "nipy-data") - (sha256 (base32 - "0xnnx5qhcbp4ddy9lr3zganbw8qryinwd5h66yp2zhz0z7fd74v1"))) - (origin - (method url-fetch/tarbomb) - (uri - "https://nipy.org/data-packages/nipy-templates-0.3.tar.gz") - (file-name "nipy-templates") - (sha256 (base32 - "0nwi916fwrilq62x4qw1cqwlfmqank3l7rx5fc1hnibi4qz9028q"))))) + (native-inputs (list ninja python-cython python-meson python-setuptools)) (home-page "https://nipy.org/nipy") (synopsis "Neuroimaging analysis in Python") (description -- cgit v1.2.3