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 copy)
|
||||||
#:use-module (guix build-system perl)
|
#:use-module (guix build-system perl)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix build-system qt)
|
#:use-module (guix build-system qt)
|
||||||
#:use-module (guix deprecation)
|
#:use-module (guix deprecation)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
|
@ -51,6 +52,7 @@
|
||||||
#:use-module (gnu packages bash)
|
#:use-module (gnu packages bash)
|
||||||
#:use-module (gnu packages check)
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages bison)
|
#:use-module (gnu packages bison)
|
||||||
#:use-module (gnu packages kde-frameworks)
|
#: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.")
|
objects.")
|
||||||
(license license:artistic2.0)))
|
(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
|
(define-public python-docrepr
|
||||||
(package
|
(package
|
||||||
(name "python-docrepr")
|
(name "python-docrepr")
|
||||||
|
@ -329,9 +333,10 @@ objects.")
|
||||||
(base32
|
(base32
|
||||||
"1ma5gwy93m1djd3zdlnqfrwhgr8ic1qbsz5kkrb9f987ax40lfkd"))
|
"1ma5gwy93m1djd3zdlnqfrwhgr8ic1qbsz5kkrb9f987ax40lfkd"))
|
||||||
(patches (search-patches "python-docrepr-fix-tests.patch"))))
|
(patches (search-patches "python-docrepr-fix-tests.patch"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:tests? #f ; all tests fail
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-sources
|
(add-after 'unpack 'patch-sources
|
||||||
|
@ -344,17 +349,13 @@ objects.")
|
||||||
;; https://github.com/spyder-ide/docrepr/issues/54).
|
;; https://github.com/spyder-ide/docrepr/issues/54).
|
||||||
(substitute* "docrepr/utils.py"
|
(substitute* "docrepr/utils.py"
|
||||||
(("except TypeError")
|
(("except TypeError")
|
||||||
"except (TypeError, shutil.Error)"))))
|
"except (TypeError, shutil.Error)")))))))
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "pytest" "-p" "no:warnings" "-vv")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-ipython
|
(list python-ipython
|
||||||
python-matplotlib
|
python-matplotlib
|
||||||
python-numpy
|
python-numpy
|
||||||
python-pytest
|
python-setuptools
|
||||||
python-pytest-asyncio))
|
python-wheel))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-docutils
|
(list python-docutils
|
||||||
python-jinja2
|
python-jinja2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue