diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-11-22 12:35:26 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 20:23:28 +0000 |
| commit | 52ad47b9cb0c108f83ab0dd6416897a32ab8f88b (patch) | |
| tree | 7a269837dedc64d00db7be648c8ced80014d4392 /gnu/packages/python-check.scm | |
| parent | c443318dad7bb5738683bcc2efa0e00e74954b86 (diff) | |
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
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index c2bf914233d..e4e5c583b6a 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -54,6 +54,7 @@ | |||
| 54 | #:use-module (gnu packages python-web) | 54 | #:use-module (gnu packages python-web) |
| 55 | #:use-module (gnu packages python-xyz) | 55 | #:use-module (gnu packages python-xyz) |
| 56 | #:use-module (gnu packages qt) | 56 | #:use-module (gnu packages qt) |
| 57 | #:use-module (gnu packages version-control) | ||
| 57 | #:use-module (gnu packages web) | 58 | #:use-module (gnu packages web) |
| 58 | #:use-module (gnu packages xml) | 59 | #:use-module (gnu packages xml) |
| 59 | #:use-module (gnu packages xorg) | 60 | #:use-module (gnu packages xorg) |
| @@ -791,28 +792,37 @@ files and/or directories.") | |||
| 791 | (define-public python-pytest-doctestplus | 792 | (define-public python-pytest-doctestplus |
| 792 | (package | 793 | (package |
| 793 | (name "python-pytest-doctestplus") | 794 | (name "python-pytest-doctestplus") |
| 794 | (version "1.2.0") | 795 | (version "1.2.1") |
| 795 | (source | 796 | (source |
| 796 | (origin | 797 | (origin |
| 797 | (method url-fetch) | 798 | (method url-fetch) |
| 798 | (uri (pypi-uri "pytest-doctestplus" version)) | 799 | (uri (pypi-uri "pytest-doctestplus" version)) |
| 799 | (sha256 | 800 | (sha256 |
| 800 | (base32 "0cmrkgpib869kpy8h8hfkg20w16lakkmbkw8cxdywpmf5wx7dbf5")))) | 801 | (base32 "0ybn613rp0wqzm97hncwnpn8wx7bz91rajgnclplv8yfr2iahwi4")))) |
| 801 | (build-system pyproject-build-system) | 802 | (build-system pyproject-build-system) |
| 802 | (arguments | 803 | (arguments |
| 803 | (list #:test-flags | 804 | (list |
| 804 | #~(list "-k" (string-append | 805 | #:test-flags |
| 805 | ;; Tests requiring network access. | 806 | #~(list "-k" (string-join |
| 806 | "not test_remote_data_url" | 807 | ;; Tests requiring network access. |
| 807 | " and not test_remote_data_float_cmp" | 808 | (list "not test_remote_data_url" |
| 808 | " and not test_remote_data_ignore_whitespace" | 809 | "test_remote_data_float_cmp" |
| 809 | " and not test_remote_data_ellipsis" | 810 | "test_remote_data_ignore_whitespace" |
| 810 | " and not test_remote_data_requires" | 811 | "test_remote_data_ellipsis" |
| 811 | " and not test_remote_data_ignore_warnings" | 812 | "test_remote_data_requires" |
| 812 | ;; Requiring git available. | 813 | "test_remote_data_ignore_warnings") |
| 813 | " and not test_generate_diff_basic")))) | 814 | " and not ")) |
| 815 | #:phases | ||
| 816 | #~(modify-phases %standard-phases | ||
| 817 | (add-after 'unpack 'patch-git-path | ||
| 818 | (lambda _ | ||
| 819 | (substitute* "pytest_doctestplus/plugin.py" | ||
| 820 | (("\"git\"") | ||
| 821 | (format #f "'~a/bin/git'" | ||
| 822 | #$(this-package-native-input "git-minimal"))))))))) | ||
| 814 | (native-inputs | 823 | (native-inputs |
| 815 | (list python-numpy | 824 | (list git-minimal/pinned |
| 825 | python-numpy | ||
| 816 | python-pytest | 826 | python-pytest |
| 817 | python-setuptools-scm | 827 | python-setuptools-scm |
| 818 | python-wheel)) | 828 | python-wheel)) |
