guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 75136dd32fda8eec175be4591ad4990535670de0
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jun 11 11:18:07 2026 +0100
gnu: python-pytest-trio: Update to 0.8.0-0.f016850.
* gnu/packages/python-check.scm (python-pytest-trio): Update to
f0168502bc3340f22b8b80ed388efa1a26883aa8 commit.
[source]: Switch to git-fetch.
[arguments] <tests?, test-flags>: Enable the most of the tests.
[native-inputs]: Remove python-pytest and python-wheel; add
python-pytest-bootstrap.
Change-Id: I5e643d9a15608e6d6236db0568bac7bbf1eaf6b6
---
gnu/packages/python-check.scm | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index ce5e396319..4609f743e2 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -4605,24 +4605,35 @@ plain (undecoratored) native coroutine tests.")
(define-public python-pytest-trio
(package
(name "python-pytest-trio")
- (version "0.8.0")
+ ;; 0.8.0 (2022-11-01), no longer compatible with Pytest 9, use the latest
+ ;; commit for now.
+ (properties '((commit . "f0168502bc3340f22b8b80ed388efa1a26883aa8")
+ (revision . "0")))
+ (version (git-version "0.8.0"
+ (assoc-ref properties 'revision)
+ (assoc-ref properties 'commit)))
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pytest-trio" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/python-trio/pytest-trio")
+ (commit (assoc-ref properties 'commit))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0bmmdyjqj5v4a637i4rzm55crv6v3nj268as6x9nr7m76rixnqw3"))))
+ (base32 "1lblg06lsrm0hfrc9nn4zksxqyvigah1ibaibwsvqyfm1kl15jhz"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; Tests are broken, see
- ;; <https://github.com/python-trio/pytest-trio/issues/84>.
- #:tests? #f))
+ ;; tests: 55 passed, 2 deselected, 2 xfailed, 1 warning
+ #:test-flags
+ #~(list
+ ;; Assertion Error for 2 tests.
+ "--deselect=_tests/test_basic.py::test_skip_and_xfail"
+ "--deselect=_tests/test_fixture_ordering.py::test_error_collection")))
(native-inputs
(list python-hypothesis
- python-pytest
- python-setuptools
- python-wheel))
+ python-pytest-bootstrap
+ python-setuptools))
(propagated-inputs
(list python-async-generator
python-outcome