~ruther/guix-local

d22f37ba13e2f482d775b065c033a8de38dfb0f6 — Sharlatan Hellseher 9 months ago 3922ccc
gnu: python-sphinx-6: Skip some problematic tests.

* gnu/packages/sphinx.scm (python-sphinx-6) [arguments] <tests-flags>:
Run tests in parallel, supported upstream. Skip 10 tests.
[native-inputs]: Add python-pytest-xdist.
[propagated-inputs]: Remove python-docutils; add python-docutils-0.19.

Change-Id: I96e7c88e6fbe195909d4c822d5e34d10985d159a
1 files changed, 23 insertions(+), 9 deletions(-)

M gnu/packages/sphinx.scm
M gnu/packages/sphinx.scm => gnu/packages/sphinx.scm +23 -9
@@ 181,14 181,27 @@ sources.")
    (arguments
     (list
      #:test-flags
      #~(list "-k" (string-join
                    (list
                     ;; These require Internet access.
                     "not test_latex_images"
                     "test_build_latex_doc[lualatex-manual]"
                     "est_build_latex_doc[lualatex-howto]"
                     ;; AssertionError: assert...list of weak references to the object...
                     "test_autodoc_default_options")
      #~(list "--numprocesses" (number->string (parallel-job-count))
              "-k" (string-join
                    ;; 1818 passed, 24 skipped, 97 warnings
                    ;;
                    ;; AttributeError: module 'alabaster' has no
                    ;; attribute 'version'
                    (list "not test_theme_api"
                          ;; The alabaster extension used by this project
                          ;; needs at least Sphinx v3.4; it therefore cannot
                          ;; be built with this version.
                          "test_needs_sphinx"
                          ;; Various assertion errors.
                          "test_additional_targets_should_be_translated"
                          "test_additional_targets_should_not_be_translated"
                          "test_autodoc_default_options"
                          "test_html_code_role"
                          "test_latex_code_role"
                          "test_latex_images"
                          "test_linenothreshold"
                          "test_literal_include_linenos"
                          "test_viewcode")
                    " and not "))
      #:phases
      #~(modify-phases %standard-phases


@@ 199,7 212,7 @@ sources.")
    (propagated-inputs
     (list python-babel
           python-colorama
           python-docutils
           python-docutils-0.19
           python-filelock
           python-html5lib
           python-imagesize


@@ 256,6 269,7 @@ sources.")
           python-cython
           python-flit-core
           python-pytest
           python-pytest-xdist
           (texlive-local-tree
            (list texlive-anyfontsize texlive-cm-super texlive-tex-gyre))))))