summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorHugo Buddelmeijer <hugo@buddelmeijer.nl>2025-12-19 21:57:12 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-27 17:24:45 +0000
commit679acc567586fcab48a92fee40921fa445248d4b (patch)
tree520eeb1ad50fd001b4b099faea0236153a0c5754 /gnu
parentf85938f7b734f97a46b5354c83b216c626c438d7 (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')
-rw-r--r--gnu/packages/python-check.scm25
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.")
(define-public python-pytest-xvfb
(package
(name "python-pytest-xvfb")
- (version "2.0.0")
+ (version "3.1.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pytest-xvfb" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/The-Compiler/pytest-xvfb")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1kyq5rg27dsnj7dc6x9y7r8vwf8rc88y2ppnnw6r96alw0nn9fn4"))))
- (build-system python-build-system)
+ (base32 "0p27h1idqja2lz2xnk4fsb9c8kafvgy1zpa84lg9d1hlamr221ja"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:test-target "pytest"
+ (list
#:phases
- (modify-phases %standard-phases
+ #~(modify-phases %standard-phases
(add-before 'build 'prepare-tests
(lambda _
(system "Xvfb &")
(setenv "DISPLAY" ":0")
-
;; This test is meant to run on Windows.
- (delete-file "tests/test_xvfb_windows.py")
- #t)))))
+ (delete-file "tests/test_xvfb_windows.py"))))))
(native-inputs
- (list python-pytest python-pytest-runner xorg-server-for-tests))
+ (list python-pytest
+ python-setuptools
+ xorg-server-for-tests))
(propagated-inputs
(list python-pyvirtualdisplay))
(home-page "https://github.com/The-Compiler/pytest-xvfb")