sharlatan pushed a commit to branch python-team
in repository guix.
commit 4d911c17678dc45cf3f35ff074f8f2056b7c0ea8
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Mar 27 12:48:20 2025 +0000
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
---
gnu/packages/documentation.scm | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 21f6df2dcc..fccdc6420c 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -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