diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-03-27 12:48:20 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:23 +0200 |
| commit | b58bf70620d373bebfa4ebc72949f863de7a515e (patch) | |
| tree | 39daf3aa763858a0ee765f1c8e80e5237a0c341e | |
| parent | 5737570c2a06e16f08283ce2c32055150018468e (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.scm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm index 21f6df2dcc2..fccdc6420c2 100644 --- a/gnu/packages/documentation.scm +++ b/gnu/packages/documentation.scm | |||
| @@ -41,6 +41,7 @@ | |||
| 41 | #:use-module (guix build-system copy) | 41 | #:use-module (guix build-system copy) |
| 42 | #:use-module (guix build-system perl) | 42 | #:use-module (guix build-system perl) |
| 43 | #:use-module (guix build-system python) | 43 | #:use-module (guix build-system python) |
| 44 | #:use-module (guix build-system pyproject) | ||
| 44 | #:use-module (guix build-system qt) | 45 | #:use-module (guix build-system qt) |
| 45 | #:use-module (guix deprecation) | 46 | #:use-module (guix deprecation) |
| 46 | #:use-module (guix utils) | 47 | #:use-module (guix utils) |
| @@ -51,6 +52,7 @@ | |||
| 51 | #:use-module (gnu packages bash) | 52 | #:use-module (gnu packages bash) |
| 52 | #:use-module (gnu packages check) | 53 | #:use-module (gnu packages check) |
| 53 | #:use-module (gnu packages python) | 54 | #:use-module (gnu packages python) |
| 55 | #:use-module (gnu packages python-build) | ||
| 54 | #:use-module (gnu packages python-xyz) | 56 | #:use-module (gnu packages python-xyz) |
| 55 | #:use-module (gnu packages bison) | 57 | #:use-module (gnu packages bison) |
| 56 | #:use-module (gnu packages kde-frameworks) | 58 | #:use-module (gnu packages kde-frameworks) |
| @@ -315,6 +317,8 @@ format, and supports the file types JPG, GIF, TIFF, PNG, and PNM for embedded | |||
| 315 | objects.") | 317 | objects.") |
| 316 | (license license:artistic2.0))) | 318 | (license license:artistic2.0))) |
| 317 | 319 | ||
| 320 | ;; XXX: This project looks not maintained, and some tests fail to pass, see | ||
| 321 | ;; <https://github.com/spyder-ide/docrepr/issues/49>. | ||
| 318 | (define-public python-docrepr | 322 | (define-public python-docrepr |
| 319 | (package | 323 | (package |
| 320 | (name "python-docrepr") | 324 | (name "python-docrepr") |
| @@ -329,9 +333,10 @@ objects.") | |||
| 329 | (base32 | 333 | (base32 |
| 330 | "1ma5gwy93m1djd3zdlnqfrwhgr8ic1qbsz5kkrb9f987ax40lfkd")) | 334 | "1ma5gwy93m1djd3zdlnqfrwhgr8ic1qbsz5kkrb9f987ax40lfkd")) |
| 331 | (patches (search-patches "python-docrepr-fix-tests.patch")))) | 335 | (patches (search-patches "python-docrepr-fix-tests.patch")))) |
| 332 | (build-system python-build-system) | 336 | (build-system pyproject-build-system) |
| 333 | (arguments | 337 | (arguments |
| 334 | (list | 338 | (list |
| 339 | #:tests? #f ; all tests fail | ||
| 335 | #:phases | 340 | #:phases |
| 336 | #~(modify-phases %standard-phases | 341 | #~(modify-phases %standard-phases |
| 337 | (add-after 'unpack 'patch-sources | 342 | (add-after 'unpack 'patch-sources |
| @@ -344,17 +349,13 @@ objects.") | |||
| 344 | ;; https://github.com/spyder-ide/docrepr/issues/54). | 349 | ;; https://github.com/spyder-ide/docrepr/issues/54). |
| 345 | (substitute* "docrepr/utils.py" | 350 | (substitute* "docrepr/utils.py" |
| 346 | (("except TypeError") | 351 | (("except TypeError") |
| 347 | "except (TypeError, shutil.Error)")))) | 352 | "except (TypeError, shutil.Error)"))))))) |
| 348 | (replace 'check | ||
| 349 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 350 | (when tests? | ||
| 351 | (invoke "pytest" "-p" "no:warnings" "-vv"))))))) | ||
| 352 | (native-inputs | 353 | (native-inputs |
| 353 | (list python-ipython | 354 | (list python-ipython |
| 354 | python-matplotlib | 355 | python-matplotlib |
| 355 | python-numpy | 356 | python-numpy |
| 356 | python-pytest | 357 | python-setuptools |
| 357 | python-pytest-asyncio)) | 358 | python-wheel)) |
| 358 | (propagated-inputs | 359 | (propagated-inputs |
| 359 | (list python-docutils | 360 | (list python-docutils |
| 360 | python-jinja2 | 361 | python-jinja2 |
