mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-docrepr: Disable tests.
* gnu/packages/documentation.scm: Add (guix build-system pyproject) and (gnu packages python-build). (python-docrepr) [build-system]: Swap to pyproject-build-system. [arguments] <test?>: Disable them as all fail. <phases>: Use default 'check. [native-inputs]: Remove python-pytest and python-pytest-asyncio; add python-setuptools and python-wheel. Change-Id: I27fc1b56cb44efc2c261896c1429200ce83cc080
This commit is contained in:
parent
5737570c2a
commit
b58bf70620
1 changed files with 9 additions and 8 deletions
|
@ -41,6 +41,7 @@
|
|||
#:use-module (guix build-system copy)
|
||||
#:use-module (guix build-system perl)
|
||||
#:use-module (guix build-system python)
|
||||
#:use-module (guix build-system pyproject)
|
||||
#:use-module (guix build-system qt)
|
||||
#:use-module (guix deprecation)
|
||||
#:use-module (guix utils)
|
||||
|
@ -51,6 +52,7 @@
|
|||
#:use-module (gnu packages bash)
|
||||
#:use-module (gnu packages check)
|
||||
#:use-module (gnu packages python)
|
||||
#:use-module (gnu packages python-build)
|
||||
#:use-module (gnu packages python-xyz)
|
||||
#:use-module (gnu packages bison)
|
||||
#:use-module (gnu packages kde-frameworks)
|
||||
|
@ -315,6 +317,8 @@ format, and supports the file types JPG, GIF, TIFF, PNG, and PNM for embedded
|
|||
objects.")
|
||||
(license license:artistic2.0)))
|
||||
|
||||
;; XXX: This project looks not maintained, and some tests fail to pass, see
|
||||
;; <https://github.com/spyder-ide/docrepr/issues/49>.
|
||||
(define-public python-docrepr
|
||||
(package
|
||||
(name "python-docrepr")
|
||||
|
@ -329,9 +333,10 @@ objects.")
|
|||
(base32
|
||||
"1ma5gwy93m1djd3zdlnqfrwhgr8ic1qbsz5kkrb9f987ax40lfkd"))
|
||||
(patches (search-patches "python-docrepr-fix-tests.patch"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ; all tests fail
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-sources
|
||||
|
@ -344,17 +349,13 @@ objects.")
|
|||
;; https://github.com/spyder-ide/docrepr/issues/54).
|
||||
(substitute* "docrepr/utils.py"
|
||||
(("except TypeError")
|
||||
"except (TypeError, shutil.Error)"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "pytest" "-p" "no:warnings" "-vv")))))))
|
||||
"except (TypeError, shutil.Error)")))))))
|
||||
(native-inputs
|
||||
(list python-ipython
|
||||
python-matplotlib
|
||||
python-numpy
|
||||
python-pytest
|
||||
python-pytest-asyncio))
|
||||
python-setuptools
|
||||
python-wheel))
|
||||
(propagated-inputs
|
||||
(list python-docutils
|
||||
python-jinja2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue