diff options
| author | Vinicius Monego <monego@posteo.net> | 2021-12-24 05:47:30 +0000 |
|---|---|---|
| committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-12-26 21:41:49 +0100 |
| commit | b5f990da9ca267de6685f4b95de2b9211e2d2638 (patch) | |
| tree | 7d5f70387aec7eb6380c52e9fa22c08b0ec3aef5 /gnu/packages/python-check.scm | |
| parent | 8a4d3bd91f76a528da4eb0864de7371243014e1f (diff) | |
gnu: python-pytest-doctestplus: Update to 0.11.2.
* gnu/packages/python-check.scm (python-pytest-doctestplus): Update to
0.11.2.
[arguments]<#:phases>: In the custom 'check phase, skip tests that require
remote data.
[native-inputs]: Add python-setuptools-scm.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index e6cf2a4f85c..a745e735db9 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -402,13 +402,13 @@ are too large to conveniently hard-code them in the tests.") | |||
| 402 | (define-public python-pytest-doctestplus | 402 | (define-public python-pytest-doctestplus |
| 403 | (package | 403 | (package |
| 404 | (name "python-pytest-doctestplus") | 404 | (name "python-pytest-doctestplus") |
| 405 | (version "0.7.0") | 405 | (version "0.11.2") |
| 406 | (source | 406 | (source |
| 407 | (origin | 407 | (origin |
| 408 | (method url-fetch) | 408 | (method url-fetch) |
| 409 | (uri (pypi-uri "pytest-doctestplus" version)) | 409 | (uri (pypi-uri "pytest-doctestplus" version)) |
| 410 | (sha256 | 410 | (sha256 |
| 411 | (base32 "1ai9kvd7xbq2jg2h8gmkb8lqzyrxvdh4zg3vxndg149iwd1hyi7d")))) | 411 | (base32 "0j1lvlj3ps975q9hmg8i6rpqm0313j3r18bc3l8mz6khb7vav4zk")))) |
| 412 | (build-system python-build-system) | 412 | (build-system python-build-system) |
| 413 | (arguments | 413 | (arguments |
| 414 | '(#:phases | 414 | '(#:phases |
| @@ -417,9 +417,16 @@ are too large to conveniently hard-code them in the tests.") | |||
| 417 | (lambda* (#:key inputs outputs #:allow-other-keys) | 417 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 418 | ;; Make the installed plugin discoverable by Pytest. | 418 | ;; Make the installed plugin discoverable by Pytest. |
| 419 | (add-installed-pythonpath inputs outputs) | 419 | (add-installed-pythonpath inputs outputs) |
| 420 | (invoke "pytest" "-vv")))))) | 420 | (invoke "python" "-m" "pytest" "-k" |
| 421 | (string-append ; skip tests that require remote data | ||
| 422 | "not test_remote_data_url" | ||
| 423 | " and not test_remote_data_float_cmp" | ||
| 424 | " and not test_remote_data_ignore_whitespace" | ||
| 425 | " and not test_remote_data_ellipsis" | ||
| 426 | " and not test_remote_data_requires" | ||
| 427 | " and not test_remote_data_ignore_warnings"))))))) | ||
| 421 | (native-inputs | 428 | (native-inputs |
| 422 | (list python-pytest)) | 429 | (list python-pytest python-setuptools-scm)) |
| 423 | (home-page "https://github.com/astropy/pytest-doctestplus") | 430 | (home-page "https://github.com/astropy/pytest-doctestplus") |
| 424 | (synopsis "Pytest plugin with advanced doctest features") | 431 | (synopsis "Pytest plugin with advanced doctest features") |
| 425 | (description | 432 | (description |
