mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pytest-doctestplus: Update to 1.2.1.
* gnu/packages/python-check.scm (python-pytest-doctestplus): Update to 1.2.1. [arguments]<test-flags>: Enable tests requiring git. <phases>: Add 'patch-git-path phase. [native-inputs]: Add git-minimal/pinned. Change-Id: If9fbec52481cc86581058e379e2f4f82ad7f1b2c
This commit is contained in:
parent
c443318dad
commit
52ad47b9cb
1 changed files with 24 additions and 14 deletions
|
@ -54,6 +54,7 @@
|
||||||
#:use-module (gnu packages python-web)
|
#:use-module (gnu packages python-web)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages qt)
|
#:use-module (gnu packages qt)
|
||||||
|
#:use-module (gnu packages version-control)
|
||||||
#:use-module (gnu packages web)
|
#:use-module (gnu packages web)
|
||||||
#:use-module (gnu packages xml)
|
#:use-module (gnu packages xml)
|
||||||
#:use-module (gnu packages xorg)
|
#:use-module (gnu packages xorg)
|
||||||
|
@ -791,28 +792,37 @@ files and/or directories.")
|
||||||
(define-public python-pytest-doctestplus
|
(define-public python-pytest-doctestplus
|
||||||
(package
|
(package
|
||||||
(name "python-pytest-doctestplus")
|
(name "python-pytest-doctestplus")
|
||||||
(version "1.2.0")
|
(version "1.2.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 "0cmrkgpib869kpy8h8hfkg20w16lakkmbkw8cxdywpmf5wx7dbf5"))))
|
(base32 "0ybn613rp0wqzm97hncwnpn8wx7bz91rajgnclplv8yfr2iahwi4"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:test-flags
|
(list
|
||||||
#~(list "-k" (string-append
|
#:test-flags
|
||||||
|
#~(list "-k" (string-join
|
||||||
;; Tests requiring network access.
|
;; Tests requiring network access.
|
||||||
"not test_remote_data_url"
|
(list "not test_remote_data_url"
|
||||||
" and not test_remote_data_float_cmp"
|
"test_remote_data_float_cmp"
|
||||||
" and not test_remote_data_ignore_whitespace"
|
"test_remote_data_ignore_whitespace"
|
||||||
" and not test_remote_data_ellipsis"
|
"test_remote_data_ellipsis"
|
||||||
" and not test_remote_data_requires"
|
"test_remote_data_requires"
|
||||||
" and not test_remote_data_ignore_warnings"
|
"test_remote_data_ignore_warnings")
|
||||||
;; Requiring git available.
|
" and not "))
|
||||||
" and not test_generate_diff_basic"))))
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-git-path
|
||||||
|
(lambda _
|
||||||
|
(substitute* "pytest_doctestplus/plugin.py"
|
||||||
|
(("\"git\"")
|
||||||
|
(format #f "'~a/bin/git'"
|
||||||
|
#$(this-package-native-input "git-minimal")))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-numpy
|
(list git-minimal/pinned
|
||||||
|
python-numpy
|
||||||
python-pytest
|
python-pytest
|
||||||
python-setuptools-scm
|
python-setuptools-scm
|
||||||
python-wheel))
|
python-wheel))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue