summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorYan Abu Arab <yanabuarab@gmail.com>2026-02-21 19:10:20 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-02-23 23:16:34 +0000
commitc33fd26cd4e87aef191680516f1833d97e18c97f (patch)
tree083fa64db94f170b4595922ccfe5ae7effb78eb1 /gnu/packages
parentc5bf001c2fda8104501d37affe40dec9c31a52a4 (diff)
gnu: python-ipython-documentation: Fix build.
* gnu/packages/python-xyz.scm (python-ipython-documentation): Fix build, remove pdf generation. [phases]: Remove 'configure-sphinx-for-xelatex' phase, modify 'install' phase to not copy pdf. [native-inputs]: Remove fontconfig, font-gnu-freefont, texlive-latexmk texlive-polyglossia, texlive-xetex, texlive-xindy; add python-sphinx-toml. Merges: https://codeberg.org/guix/guix/pulls/6608 Fixes: guix/guix#6285 Change-Id: I95b868b766ac6a4d96f29b63752de7ffddf856e4 Reviewed-by: Hugo Buddelmeijer <hugo@buddelmeijer.nl> Reviewed-by: Andreas Enge <andreas@enge.fr> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-xyz.scm39
1 files changed, 4 insertions, 35 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 27d209126dd..53ad01fe004 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14816,29 +14816,6 @@ computing.")
;; "python-ipython-documentation-chars.patch" patch) copy of
;; IPython gets used.
(setenv "PYTHONPATH" (string-append (getcwd)))))
- (add-before 'build 'configure-sphinx-for-xelatex
- (lambda _
- ;; Use XeLaTeX instead of PDFLaTeX, as it can
- ;; cope with the Unicode characters present in the
- ;; contributors page, for example.
- (substitute* "docs/source/conf.py"
- (("project = 'IPython'.*" all)
- (string-append all "latex_engine = 'xelatex'\n")))
- ;; XXX: The Sphinx-generated ipython.tex specifies the GNU
- ;; FreeFont font to be searched via its extension, which uses
- ;; kpathsea instead of fontconfig and fail (see:
- ;; https://github.com/sphinx-doc/sphinx/issues/10347). Create a
- ;; symlink to GNU FreeFont and add it to the TEXMF tree via
- ;; GUIX_TEXMF.
- (mkdir-p "texmf-dist/fonts/opentype/public")
- (symlink (string-append
- #$(this-package-native-input "font-gnu-freefont")
- "/share/fonts/opentype")
- (string-append
- (getcwd) "/"
- "texmf-dist/fonts/opentype/public/gnu-freefont"))
- (setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF") ":"
- (getcwd) "/texmf-dist"))))
(delete 'build)
(delete 'check)
(replace 'install
@@ -14847,33 +14824,25 @@ computing.")
(doc (string-append data "/doc/" #$name "-" #$version))
(html (string-append doc "/html"))
(info (string-append data "/info")))
- (invoke "make" "-C" "docs" "info" "html" "pdf"
+ (invoke "make" "-C" "docs" "info" "html"
(string-append "SPHINXOPTS=-j"
(number->string (parallel-job-count))))
(install-file "COPYING.rst" doc)
(copy-recursively "examples" (string-append doc "/examples"))
;; Install HTML documentation.
(copy-recursively "docs/build/html" html)
- ;; Likewise for the PDF.
- (install-file "docs/build/latex/ipython.pdf" doc)
;; Likewise for the info manual.
(install-file "docs/build/texinfo/ipython.info" info)
(symlink (string-append html "/_images")
(string-append info "/ipython-figures"))))))))
(native-inputs
- (list fontconfig ;for XDG_DATA_DIRS to locate fonts
- font-gnu-freefont
- graphviz
+ (list graphviz
python-docrepr
python-ipykernel
python-sphinx
python-sphinx-rtd-theme
- texinfo
- (texlive-local-tree
- (list texlive-latexmk
- texlive-polyglossia
- texlive-xetex
- texlive-xindy))))))
+ python-sphinx-toml
+ texinfo))))
;; A bare minimal package, mainly to use in tests and reduce closure
;; size. Tests are left out in the main package to slim down native-inputs.