diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-12-19 21:57:12 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-27 17:24:45 +0000 |
| commit | 679acc567586fcab48a92fee40921fa445248d4b (patch) | |
| tree | 520eeb1ad50fd001b4b099faea0236153a0c5754 /gnu/packages/python-check.scm | |
| parent | f85938f7b734f97a46b5354c83b216c626c438d7 (diff) | |
gnu: python-pytest-xvfb: Update to 3.1.1.
* gnu/packages/python-check.scm (python-pytest-xvfb): Update to 3.1.1.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Use gexps.
<:#phases>: Improve prepare-tests phase.
[native-inputs]: Remove python-pytest-runner, add python-setuptools.
Change-Id: I7d46911037989228db944f08fd850fa7122daad0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index c15012ac0bb..6eaecaef703 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -4227,28 +4227,31 @@ framework.") | |||
| 4227 | (define-public python-pytest-xvfb | 4227 | (define-public python-pytest-xvfb |
| 4228 | (package | 4228 | (package |
| 4229 | (name "python-pytest-xvfb") | 4229 | (name "python-pytest-xvfb") |
| 4230 | (version "2.0.0") | 4230 | (version "3.1.1") |
| 4231 | (source | 4231 | (source |
| 4232 | (origin | 4232 | (origin |
| 4233 | (method url-fetch) | 4233 | (method git-fetch) |
| 4234 | (uri (pypi-uri "pytest-xvfb" version)) | 4234 | (uri (git-reference |
| 4235 | (url "https://github.com/The-Compiler/pytest-xvfb") | ||
| 4236 | (commit (string-append "v" version)))) | ||
| 4237 | (file-name (git-file-name name version)) | ||
| 4235 | (sha256 | 4238 | (sha256 |
| 4236 | (base32 "1kyq5rg27dsnj7dc6x9y7r8vwf8rc88y2ppnnw6r96alw0nn9fn4")))) | 4239 | (base32 "0p27h1idqja2lz2xnk4fsb9c8kafvgy1zpa84lg9d1hlamr221ja")))) |
| 4237 | (build-system python-build-system) | 4240 | (build-system pyproject-build-system) |
| 4238 | (arguments | 4241 | (arguments |
| 4239 | `(#:test-target "pytest" | 4242 | (list |
| 4240 | #:phases | 4243 | #:phases |
| 4241 | (modify-phases %standard-phases | 4244 | #~(modify-phases %standard-phases |
| 4242 | (add-before 'build 'prepare-tests | 4245 | (add-before 'build 'prepare-tests |
| 4243 | (lambda _ | 4246 | (lambda _ |
| 4244 | (system "Xvfb &") | 4247 | (system "Xvfb &") |
| 4245 | (setenv "DISPLAY" ":0") | 4248 | (setenv "DISPLAY" ":0") |
| 4246 | |||
| 4247 | ;; This test is meant to run on Windows. | 4249 | ;; This test is meant to run on Windows. |
| 4248 | (delete-file "tests/test_xvfb_windows.py") | 4250 | (delete-file "tests/test_xvfb_windows.py")))))) |
| 4249 | #t))))) | ||
| 4250 | (native-inputs | 4251 | (native-inputs |
| 4251 | (list python-pytest python-pytest-runner xorg-server-for-tests)) | 4252 | (list python-pytest |
| 4253 | python-setuptools | ||
| 4254 | xorg-server-for-tests)) | ||
| 4252 | (propagated-inputs | 4255 | (propagated-inputs |
| 4253 | (list python-pyvirtualdisplay)) | 4256 | (list python-pyvirtualdisplay)) |
| 4254 | (home-page "https://github.com/The-Compiler/pytest-xvfb") | 4257 | (home-page "https://github.com/The-Compiler/pytest-xvfb") |
