aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-03-10 03:16:19 +0100
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:34 +0200
commit9faf2770837543582dc3a278028d4997b21d9750 (patch)
tree0e0f450fdfd4740fae705481f4eb04777b01594e
parent88a160fe3fa0055b470a667078d8e137f94bd114 (diff)
downloadguix-9faf2770837543582dc3a278028d4997b21d9750.tar.gz
guix-9faf2770837543582dc3a278028d4997b21d9750.zip
gnu: python-numpy-documentation: Update python-sphinx native-input.
* gnu/packages/python-xyz.scm (python-numpy-documentation): [arguments]{phases}: Add phase 'avoid-external-deps. Adapt phase 'install by removing sphinx.ext.autodoc extension. [native-inputs]: Replace python-sphinx-4 by python-sphinx. Add python-sphinx-design. Change-Id: Ica1c0a72b2106cadd6e51ffcb272980508abb29f Signed-off-by: Steve George <steve@futurile.net>
-rw-r--r--gnu/packages/python-xyz.scm15
1 files changed, 14 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4ce3e31641..7826495980 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10025,6 +10025,16 @@ include_dirs = ~:*~a/include~%" #$(this-package-input "openblas")))))))))
#:tests? #f ;we're only generating the documentation
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'avoid-external-deps
+ (lambda _
+ ;; XXX: Avoid theme-switcher to avoid sphinx error
+ ;; TemplateNotFound('theme-switcher.html')
+ ;; 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\": ["))))
(add-before 'build 'add-gnu-freefont-to-texmf
(lambda _
;; XXX: The Sphinx-generated tex output specifies the GNU
@@ -10070,6 +10080,7 @@ include_dirs = ~:*~a/include~%" #$(this-package-input "openblas")))))))))
(("\"contents\"") "'index'")
;; Disable Sphinx extensions that produce broken Texinfo.
((".*'numpydoc'.*") "")
+ ((".*'sphinx.ext.autodoc'.*") "")
((".*'sphinx.ext.autosummary'.*") ""))
(invoke "make" "info" sphinxopts)
;; Install the HTML documentation.
@@ -10093,13 +10104,15 @@ include_dirs = ~:*~a/include~%" #$(this-package-input "openblas")))))))))
python-pandas
python-pydata-sphinx-theme
python-scipy ;used by matplotlib
- python-sphinx-4
+ python-sphinx
+ python-sphinx-design
python-sphinx-panels
texinfo
(texlive-updmap.cfg
(list texlive-cbfonts
texlive-cm-super
texlive-expdlist
+ texlive-fandol
texlive-greek-fontenc
texlive-latexmk
texlive-polyglossia