diff options
-rw-r--r-- | gnu/packages/documentation.scm | 17 |
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 |