summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-05-09 22:54:51 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-10-14 23:53:11 +0100
commitdc5f8fdf1d30e5335df6a3afebbc572a5c840825 (patch)
treeab1230ab022b5d11cb7196d23b48654cf19af6c4
parent192e657b839425c60f67d7c1cd8b82cf948e903e (diff)
gnu: python-sphinx-5: Disable failing tests.
* gnu/packages/sphinx.scm (python-sphinx-5)[arguments]: Disable three tests that fail for silly reasons. Change-Id: I82d9fd4465fbfe052f8aad2264a9b04d34efef89
-rw-r--r--gnu/packages/sphinx.scm97
1 files changed, 97 insertions, 0 deletions
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 40bb672e05..f043e79d80 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -156,6 +156,103 @@
projects or other documents consisting of multiple reStructuredText sources.")
(license license:bsd-2)))
+(define-public python-sphinx-5
+ (package
+ (inherit python-sphinx)
+ (version "5.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Sphinx" version))
+ (sha256
+ (base32
+ "1dclwwz5rsvlw5rzyad1ar7i0zh4csni6jfp0lyc37zzm7h6s0ji"))))
+ (arguments
+ (list
+ #:test-flags
+ ;; These require Internet access.
+ '(list "--ignore=tests/test_build_linkcheck.py"
+ "-k"
+ (string-append
+ "not test_latex_images"
+ ;; XXX: Not clear why this fails with a version comparison
+ ;; failure.
+ " and not test_needs_sphinx"
+ ;; This is a harmless failure. The expected output looks for a
+ ;; long string that happens to contain a literal space
+ ;; character, but in the actual output the space character is
+ ;; wrapped in <span class="w"> </span>.
+ " and not test_viewcode"
+ ;; These fail with pygments 2.10+. They are harmless.
+ " and not test_additional_targets_should_not_be_translated"
+ " and not test_additional_targets_should_be_translated"))
+ #:phases
+ '(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; for test_cython
+ (setenv "HOME" "/tmp"))))))
+ (propagated-inputs
+ (list python-babel
+ python-colorama
+ python-docutils
+ python-filelock
+ python-flake8
+ python-html5lib
+ python-imagesize
+ python-importlib-metadata
+ python-isort
+ python-jinja2
+ python-mypy
+ python-packaging
+ python-pygments
+ python-requests
+ python-snowballstemmer
+ python-sphinx-alabaster-theme
+ python-sphinxcontrib-applehelp
+ python-sphinxcontrib-devhelp
+ python-sphinxcontrib-htmlhelp
+ python-sphinxcontrib-jsmath
+ python-sphinxcontrib-qthelp
+ python-sphinxcontrib-serializinghtml
+ python-sphinxcontrib-websupport
+ python-types-requests
+
+ ;; The Sphinx LaTeX library '\RequirePackage' or \\usepackage
+ ;; these:
+ texlive-amsfonts ;amsmath, amssymb, amstext
+ texlive-amsmath
+ texlive-capt-of
+ texlive-carlisle ;remreset
+ texlive-cmap
+ texlive-etoolbox
+ texlive-fancyhdr
+ texlive-fancyvrb
+ texlive-float
+ texlive-fncychap
+ texlive-framed
+ texlive-geometry
+ texlive-hyperref
+ texlive-kvoptions
+ texlive-latex-bin
+ texlive-ltxcmds
+ texlive-needspace
+ texlive-oberdiek ;hypcap
+ texlive-parskip
+ texlive-preview
+ texlive-tabulary
+ texlive-titlesec
+ texlive-tools ;multicol, longtable
+ texlive-upquote
+ texlive-varwidth
+ texlive-wrapfig
+ texlive-xcolor))
+ (native-inputs
+ (list imagemagick ;for "convert"
+ python-cython
+ python-flit-core
+ python-pytest))))
+
;; Some packages do not support Sphinx 5 yet. Remove when unused.
(define-public python-sphinx-4
(package