1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-22 17:16:01 +02:00

gnu: python-numpy-documentation: Fix build.

* gnu/packages/python-xyz.scm (python-numpy-documentation)[phases]: Adjust
'avoid-external-deps' to up to date source code.
[native-inputs]: Add python-jupyterlite-sphinx, python-sphinx-copybutton.

Fixes: guix/guix#5539
Merges: https://codeberg.org/guix/guix/pulls/6374
Change-Id: I12874e13e36d1cd62f2fa94408c22c185586187a
Reviewed-by: Hugo Buddelmeijer <hugo@buddelmeijer.nl>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Yan Abu Arab
2026-02-13 14:07:21 +02:00
committed by Sharlatan Hellseher
parent 847dc67adf
commit 5dd37b30b4
+9 -3
View File
@@ -11188,14 +11188,18 @@ numpysane has:
#~(modify-phases %standard-phases
(add-after 'unpack 'avoid-external-deps
(lambda _
;; XXX: Avoid search-button to avoid sphinx error
;; TemplateNotFound('search-button.html')
(substitute* "doc/source/conf.py"
(("\"search-button\",") ""))
;; XXX: Avoid theme-switcher to avoid sphinx error
;; TemplateNotFound('theme-switcher.html')
(substitute* "doc/source/conf.py"
(("\"theme-switcher\",") ""))
;; XXX: Avoid version-switcher because it depends on the value
;; of external https://numpy.org/doc/_static/versions.json
(substitute* "doc/source/conf.py"
(("\
\"navbar_end\": \\[\"theme-switcher\", \"version-switcher\", ")
"\"navbar_end\": ["))))
(("\"version-switcher\",") ""))))
(add-before 'build 'add-gnu-freefont-to-texmf
(lambda _
;; XXX: The Sphinx-generated tex output specifies the GNU
@@ -11262,6 +11266,7 @@ numpysane has:
perl
python-breathe
python-ipython
python-jupyterlite-sphinx
python-matplotlib
python-numpy
python-numpydoc
@@ -11269,6 +11274,7 @@ numpysane has:
python-pydata-sphinx-theme
python-scipy ;used by matplotlib
python-sphinx
python-sphinx-copybutton
python-sphinx-design
texinfo
(texlive-local-tree