gnu: python-scipy: Reduce closure size.

As documentation was not built at all, this change removes everything
requiring for to reduce the closue size.

* gnu/packages/python-science.scm (python-scipy): Adjust inputs
[arguments] <phases>: Remove 'install-doc.
[propagated-inputs]: Keep only python-numpy.
[native-inpusts]: Remove python-hypothesis, and python-pytest-cov; add
python-mpmath, python-numpydoc, python-pythran, python-rich-click,
python-threadpoolctl, and python-typing-extensions.

Fixes: guix/guix#2944.
Change-Id: I97e4914c3d705b47b276d3f88dc938f26b0d27a5
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Hugo Buddelmeijer 2025-09-24 22:09:36 +02:00 committed by Sharlatan Hellseher
parent 08e6a0faba
commit b76bf5dcd1
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3105,53 +3105,7 @@ cross-validation.")
(string-append (string-append
"import scipy; scipy.test('fast', parallel=" "import scipy; scipy.test('fast', parallel="
(number->string (parallel-job-count)) (number->string (parallel-job-count))
", verbose=2)")))))) ", verbose=2)")))))))))
(add-after 'check 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
;; FIXME: Documentation cannot be built because it requires
;; a newer version of pydata-sphinx-theme, which currently
;; cannot build without internet access:
;; <https://github.com/pydata/pydata-sphinx-theme/issues/628>.
;; Keep the phase for easy testing.
(let ((sphinx-build (false-if-exception
(search-input-file input "bin/sphinx-build"))))
(if sphinx-build
(let* ((doc (assoc-ref outputs "doc"))
(data (string-append doc "/share"))
(docdir (string-append
data "/doc/"
#$(package-name this-package) "-"
#$(package-version this-package)))
(html (string-append docdir "/html")))
(with-directory-excursion "doc"
;; Build doc.
(invoke "make" "html"
;; Building the documentation takes a very long time.
;; Parallelize it.
(string-append "SPHINXOPTS=-j"
(number->string (parallel-job-count))))
;; Install doc.
(mkdir-p html)
(copy-recursively "build/html" html)))
(format #t "sphinx-build not found, skipping~%"))))))))
(propagated-inputs
(append
(if (supported-package? python-jupytext) ; Depends on pandoc.
(list python-jupytext)
'())
(list python-matplotlib
python-mpmath
python-mypy
python-numpy
python-numpydoc
python-pydata-sphinx-theme
python-pydevtool
python-pythran
python-rich-click
python-sphinx
python-threadpoolctl
python-typing-extensions)))
(inputs (list openblas pybind11-2.10))
(native-inputs (native-inputs
(list gfortran (list gfortran
;; XXX: Adding gfortran shadows GCC headers, causing a compilation ;; XXX: Adding gfortran shadows GCC headers, causing a compilation
@ -3162,14 +3116,23 @@ cross-validation.")
python-click python-click
python-cython-0 python-cython-0
python-doit python-doit
python-hypothesis python-mpmath
python-numpydoc
python-pooch python-pooch
python-pycodestyle python-pycodestyle
python-pydevtool python-pydevtool
python-pytest python-pytest
python-pytest-cov
python-pytest-timeout python-pytest-timeout
python-pytest-xdist)) python-pytest-xdist
python-pythran
python-rich-click
python-threadpoolctl
python-typing-extensions))
(inputs
(list openblas
pybind11-2.10))
(propagated-inputs
(list python-numpy))
(home-page "https://scipy.org/") (home-page "https://scipy.org/")
(synopsis "The Scipy library provides efficient numerical routines") (synopsis "The Scipy library provides efficient numerical routines")
(description "The SciPy library is one of the core packages that make up (description "The SciPy library is one of the core packages that make up