This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 5dd37b30b4 gnu: python-numpy-documentation: Fix build.
5dd37b30b4 is described below

commit 5dd37b30b4acc0ab3909850334cb13000c2ab931
Author: Yan Abu Arab <[email protected]>
AuthorDate: Fri Feb 13 14:07:21 2026 +0200

    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 <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5c6e1c1866..156e7d7ca6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -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

Reply via email to