diff options
author | Andreas Enge <andreas@enge.fr> | 2023-04-25 15:19:29 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2023-04-25 15:19:29 +0200 |
commit | c919bfefd98bf2e29549539b4e28e6dc2a8a6f32 (patch) | |
tree | 61d10f1fcc6f80d97f788e19df7f20ff7fc27752 /gnu/packages/python-check.scm | |
parent | ce0bdceb4948d5f297327a1b1724074ca960eb05 (diff) | |
parent | 472706ae2f9160833951a4e4bcc4c206e03097b0 (diff) | |
download | guix-c919bfefd98bf2e29549539b4e28e6dc2a8a6f32.tar guix-c919bfefd98bf2e29549539b4e28e6dc2a8a6f32.tar.gz |
Merge remote-tracking branch 'origin/master' into core-updates
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r-- | gnu/packages/python-check.scm | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 6866c42402..c42cd426b1 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1090,42 +1090,33 @@ simpler.") (define-public python-pytest-trio (package (name "python-pytest-trio") - (version "0.8.0") + (version "0.7.0") (source (origin (method url-fetch) (uri (pypi-uri "pytest-trio" version)) (sha256 - (base32 "0bmmdyjqj5v4a637i4rzm55crv6v3nj268as6x9nr7m76rixnqw3")))) + (base32 "0c8cqf9by2884riksrqymqfp2g1d2d798a2zalcw9hmf34c786y0")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - (substitute* "setup.py" - (("pytest >= 7.2.0") - "pytest")))) (replace 'check (lambda* (#:key tests? inputs outputs #:allow-other-keys) (when tests? - (invoke - "pytest" "-W" "error" "-ra" "-v" "--pyargs" - "pytest_trio" "--verbose" "--cov" "-k" - (string-append - ;; These tests require network. - "not test_async_yield_fixture_with_nursery " - "and not test_try " - ;; No keyboard interrupt in our build environment. - "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 ")))))))) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs" + "pytest_trio" "--verbose" "--cov" "-k" + (string-append + ;; Needs network + "not test_async_yield_fixture_with_nursery" + " and not test_try" + ;; No keyboard interrupt in our build environment. + " and not test_actual_test")))))))) (native-inputs (list python-hypothesis python-pytest python-pytest-cov)) (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") (synopsis "Pytest plugin for trio") (description |