guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit b00bcf02abc55d188ef4b0324370ab0a5dc52e63
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Jan 18 23:22:50 2026 +0000
gnu: python-pytest-asyncio-0.26: Relax higher boundary of Pytest version.
* gnu/packages/check.scm (python-pytest-asyncio-0.26):
[arguments] <test-flags>: Skip 4 tests, as it was in v1.0.0.
<phases>: Add 'relax-requirements.
Change-Id: If104b5b59759b4ea6c6fcb91aee62e4f933480a1
---
gnu/packages/check.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 3f7d12bf67..b68b7a122c 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2525,6 +2525,8 @@ to make testing async code easier.")
(sha256
(base32 "1lz4h8y6m6hxnsl7kqh0rjxqp5q2wc2m5gd88371rikd7ari16vm"))))))
+;; It's the last 0.26.X version which is still required and has breaking
+;; changes with 1.X.X.
(define-public python-pytest-asyncio-0.26
(package
(inherit python-pytest-asyncio)
@@ -2534,7 +2536,25 @@ to make testing async code easier.")
(method url-fetch)
(uri (pypi-uri "pytest_asyncio" version))
(sha256
- (base32 "0bri1scs8whdrxb3jrv0ywiz20qb0mrll3kzkvriy928frljmpy4"))))))
+ (base32 "0bri1scs8whdrxb3jrv0ywiz20qb0mrll3kzkvriy928frljmpy4"))))
+ (arguments
+ (list
+ ;; tests: 202 passed, 4 deselected
+ #:test-flags
+ #~(list "-k" (string-join
+ (list "not test_strict_mode_ignores_unmarked_coroutine"
+ "test_strict_mode_ignores_unmarked_fixture"
+
"test_strict_mode_marked_test_unmarked_fixture_warning"
+
"test_strict_mode_marked_test_unmarked_autouse_fixture_warning")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "pyproject.toml"
+ ;; Pytest is in propagated inputs, remove higher boundary to
+ ;; avoid propagation of python-pytest-8.
+ ((">=8.2,<9") ">=8.2")))))))))
(define-public python-pytest-asyncio-0.21
(package