summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-03-27 12:48:20 +0000
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:23 +0200
commitb58bf70620d373bebfa4ebc72949f863de7a515e (patch)
tree39daf3aa763858a0ee765f1c8e80e5237a0c341e
parent5737570c2a06e16f08283ce2c32055150018468e (diff)
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
-rw-r--r--gnu/packages/documentation.scm17
1 files 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