sharlatan pushed a commit to branch python-team
in repository guix.
commit 72a0a1ef0ffc10d4f9f175b6c87336b1d6d0ab52
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Nov 23 12:42:13 2024 +0000
gnu: python-trio: Update to 0.27.0.
* gnu/packages/python-xyz.scm (python-trio): Update to 0.27.0.
[arguments]<test-flags>: Disable more failing tests.
<phases>: Remove 'patch-sleep as resolved upstream. Remove change-home,
add 'set-env phase.
[native-inputs]: Remove python-ipython, python-pylint,
python-pytest-xdist, and python-pytest-cov; add python-isort and
python-pytest-asyncio.
Change-Id: I0f05649e05c76f556a9b23035c23c90b67ab8014
---
gnu/packages/python-xyz.scm | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5c5239f1c6..c432ca6314 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29832,24 +29832,27 @@ project.")
(define-public python-trio
(package
(name "python-trio")
- (version "0.21.0")
+ (version "0.27.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "trio" version))
(sha256
- (base32 "04qwzy4295ajxpns0hrmn3asma80sjpimzpb3i877vwynsvkjgsj"))))
+ (base32 "0cb8qy1yj274xa21nf2jpmwssjzp39vgva7y982xmci62ymrbk0x"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
'(list "-k"
(string-append
- ;; This test times out.
+ ;; This tests times out.
"not test_ki_protection_works"
+ " and not test_KI_interrupts"
;; This fails with: signal only works in main thread of the main
interpreter
" and not test_catch_signals_race_condition_on_exit"
;; Assertion errors.
+ " and not test_named_thread_os"
+ " and not test_has_pthread_setname_np"
" and not test_guest_mode_ki"
" and not test_run_in_trio_thread_ki"
" and not test_simple_cancel_scope_usage_doesnt_create\
@@ -29872,27 +29875,24 @@ _cyclic_garbage"
" and not test_getprotobyname"
;; EOFError: Ran out of input.
" and not test_static_tool_sees_all_symbols")
- "trio/tests")
+ ;; It rerquires black and ruff to generate a final report.
+ "--ignore=src/trio/_tests/tools/test_gen_exports.py"
+ "src/trio/_tests")
#:phases
'(modify-phases %standard-phases
- (add-after 'unpack 'patch-sleep
- (lambda _
- (substitute* "trio/tests/test_subprocess.py"
- (("/bin/sleep")
- (which "sleep")))))
- (add-before 'check 'change-home
+ (add-before 'check 'set-env
(lambda _
;; Tests require a writable home.
- (setenv "HOME" "/tmp"))))))
+ (setenv "HOME" "/tmp")
+ ;; #$output is first in path which causes "import file mismatch"
+ (setenv "PYTHONPATH" (string-append (getcwd)
"/src:$PYTHONPATH")))))))
(native-inputs
(list python-astor
- python-ipython
python-jedi
- python-pylint
python-pyopenssl
python-pytest
- python-pytest-xdist
- python-pytest-cov
+ python-isort
+ python-pytest-asyncio
python-trustme
python-setuptools
python-wheel))