gnu: python-pytest-doctestplus: Update to 0.12.1.

* gnu/packages/python-check.scm (python-pytest-doctestplus): Update to
0.12.1.
[build-system]: Use pyproject-build-system.
[arguments]<phases>: Remove modify-phases and add test-flags option
instead.
[native-inputs]: Add python-numpy.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Sharlatan Hellseher 2023-04-28 00:43:00 +01:00 committed by Efraim Flashner
parent 476f764f07
commit bb38261b5d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -577,32 +577,25 @@ are too large to conveniently hard-code them in the tests.")
(define-public python-pytest-doctestplus (define-public python-pytest-doctestplus
(package (package
(name "python-pytest-doctestplus") (name "python-pytest-doctestplus")
(version "0.11.2") (version "0.12.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pytest-doctestplus" version)) (uri (pypi-uri "pytest-doctestplus" version))
(sha256 (sha256
(base32 "0j1lvlj3ps975q9hmg8i6rpqm0313j3r18bc3l8mz6khb7vav4zk")))) (base32 "10ciqylgziihxwxryxvxgmkqgws51pqcarn0gbh1d4cxx55rx5vs"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (list #:test-flags
(modify-phases %standard-phases #~(list "-k" (string-append
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
;; Make the installed plugin discoverable by Pytest.
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "-k"
(string-append ; skip tests that require remote data
"not test_remote_data_url" "not test_remote_data_url"
" and not test_remote_data_float_cmp" " and not test_remote_data_float_cmp"
" and not test_remote_data_ignore_whitespace" " and not test_remote_data_ignore_whitespace"
" and not test_remote_data_ellipsis" " and not test_remote_data_ellipsis"
" and not test_remote_data_requires" " and not test_remote_data_requires"
" and not test_remote_data_ignore_warnings")))))))) " and not test_remote_data_ignore_warnings"))))
(native-inputs (native-inputs
(list python-pytest python-setuptools-scm)) (list python-numpy python-pytest python-setuptools-scm))
(home-page "https://github.com/astropy/pytest-doctestplus") (home-page "https://github.com/astropy/pytest-doctestplus")
(synopsis "Pytest plugin with advanced doctest features") (synopsis "Pytest plugin with advanced doctest features")
(description (description