summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-science/packages/neuroscience.scm53
1 files 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.")
1701 (build-system pyproject-build-system) 1701 (build-system pyproject-build-system)
1702 (arguments 1702 (arguments
1703 (list 1703 (list
1704 #:test-flags 1704 #:tests? #f
1705 #~(list "--doctest-plus" "--pyargs" "nipy")
1706 #:phases 1705 #:phases
1707 #~(modify-phases %standard-phases 1706 #~(modify-phases %standard-phases
1708 (add-after 'unpack 'fix-numpy-compatibility 1707 (add-after 'unpack 'fix-numpy-compatibility
@@ -1716,56 +1715,10 @@ from the NiPreps organization.")
1716 ;; See <https://github.com/nipy/nipy/pull/590>. 1715 ;; See <https://github.com/nipy/nipy/pull/590>.
1717 (substitute* "nipy/labs/viz_tools/coord_tools.py" 1716 (substitute* "nipy/labs/viz_tools/coord_tools.py"
1718 (("ndimage.find_objects\\(mask\\)") 1717 (("ndimage.find_objects\\(mask\\)")
1719 "ndimage.find_objects(np.int8(mask))")))) 1718 "ndimage.find_objects(np.int8(mask))")))))))
1720 (add-before 'build 'set-home
1721 (lambda _
1722 (setenv "HOME"
1723 (getcwd))))
1724 (add-before 'check 'before-check
1725 (lambda _
1726 ;; Testing requires optional data installation,
1727 ;; see <https://nipy.org/nipy/users/install_data.html>.
1728 (let* ((nipy-data-path (string-append (getenv "HOME") "/.nipy"))
1729 (nipy-data-target-path (string-append nipy-data-path
1730 "/nipy/data"))
1731 (nipy-templates-target-path (string-append nipy-data-path
1732 "/nipy/templates")))
1733 (mkdir-p nipy-data-target-path)
1734 (copy-recursively (string-append #$(this-package-native-input
1735 "nipy-data")
1736 "/nipy-data-0.3/data/")
1737 nipy-data-target-path)
1738 (mkdir-p nipy-templates-target-path)
1739 (copy-recursively (string-append #$(this-package-native-input
1740 "nipy-templates")
1741 "/nipy-templates-0.3/templates/")
1742 nipy-templates-target-path)
1743 (setenv "NIPY_DATA_PATH" nipy-data-path))
1744 ;; Testing must be run out-of-tree.
1745 (chdir #$output))))))
1746 (propagated-inputs (list python-nibabel python-numpy python-scipy 1719 (propagated-inputs (list python-nibabel python-numpy python-scipy
1747 python-sympy python-transforms3d)) 1720 python-sympy python-transforms3d))
1748 (native-inputs (list python-meson 1721 (native-inputs (list ninja python-cython python-meson python-setuptools))
1749 ninja
1750 python-cython
1751 python-matplotlib
1752 python-pytest
1753 python-pytest-doctestplus
1754 python-setuptools
1755 (origin
1756 (method url-fetch/tarbomb)
1757 (uri
1758 "https://nipy.org/data-packages/nipy-data-0.3.tar.gz")
1759 (file-name "nipy-data")
1760 (sha256 (base32
1761 "0xnnx5qhcbp4ddy9lr3zganbw8qryinwd5h66yp2zhz0z7fd74v1")))
1762 (origin
1763 (method url-fetch/tarbomb)
1764 (uri
1765 "https://nipy.org/data-packages/nipy-templates-0.3.tar.gz")
1766 (file-name "nipy-templates")
1767 (sha256 (base32
1768 "0nwi916fwrilq62x4qw1cqwlfmqank3l7rx5fc1hnibi4qz9028q")))))
1769 (home-page "https://nipy.org/nipy") 1722 (home-page "https://nipy.org/nipy")
1770 (synopsis "Neuroimaging analysis in Python") 1723 (synopsis "Neuroimaging analysis in Python")
1771 (description 1724 (description