Revert "gnu: python-pytest-trio: Update to 0.8.0."

Not compatible with python-trio 0.8.

This reverts commit 27a4bfbd07.
This commit is contained in:
Lars-Dominik Braun 2023-04-24 12:53:48 +02:00
parent 27e1451891
commit e619750d00
No known key found for this signature in database
GPG key ID: 421377011A378446

View file

@ -1086,42 +1086,33 @@ (define-public python-re-assert
(define-public python-pytest-trio (define-public python-pytest-trio
(package (package
(name "python-pytest-trio") (name "python-pytest-trio")
(version "0.8.0") (version "0.7.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pytest-trio" version)) (uri (pypi-uri "pytest-trio" version))
(sha256 (sha256
(base32 "0bmmdyjqj5v4a637i4rzm55crv6v3nj268as6x9nr7m76rixnqw3")))) (base32 "0c8cqf9by2884riksrqymqfp2g1d2d798a2zalcw9hmf34c786y0"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
(("pytest >= 7.2.0")
"pytest"))))
(replace 'check (replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys) (lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests? (when tests?
(invoke (add-installed-pythonpath inputs outputs)
"pytest" "-W" "error" "-ra" "-v" "--pyargs" (invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs"
"pytest_trio" "--verbose" "--cov" "-k" "pytest_trio" "--verbose" "--cov" "-k"
(string-append (string-append
;; These tests require network. ;; Needs network
"not test_async_yield_fixture_with_nursery " "not test_async_yield_fixture_with_nursery"
"and not test_try " " and not test_try"
;; No keyboard interrupt in our build environment. ;; No keyboard interrupt in our build environment.
"and not test_actual_test " " and not test_actual_test"))))))))
;; These tests fail due to unclean teardown (see:
;; https://github.com/python-trio/pytest-trio/issues/122).
"and not crashed_teardown "
"and not test_error_collection "))))))))
(native-inputs (native-inputs
(list python-hypothesis python-pytest python-pytest-cov)) (list python-hypothesis python-pytest python-pytest-cov))
(propagated-inputs (propagated-inputs
(list python-async-generator python-outcome python-pytest python-trio)) (list python-async-generator python-outcome python-pytest python-trio))
(home-page "https://github.com/python-trio/pytest-trio") (home-page "https://github.com/python-trio/pytest-trio")
(synopsis "Pytest plugin for trio") (synopsis "Pytest plugin for trio")
(description (description