mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-20 01:33:18 -05:00
gnu: python-trio: Update to 0.20.0.
* gnu/packages/python-xyz.scm (python-trio): Update to 0.20.0. [phases]{patch-sleep}: New phase. [change-home]: Delete trailing #t. {check}: Run tests in parallel. Disable the test_cancel_scope_exit_doesnt_create_cyclic_garbage, test_ipython_exc_handler, test_for_leaking_fds and test_static_tool_sees_all_symbols tests. [native-inputs]: Add python-pytest-xdist.
This commit is contained in:
parent
476ae98d0b
commit
33570ca6bd
1 changed files with 18 additions and 6 deletions
|
@ -24426,26 +24426,32 @@ (define-public python-outcome
|
||||||
(define-public python-trio
|
(define-public python-trio
|
||||||
(package
|
(package
|
||||||
(name "python-trio")
|
(name "python-trio")
|
||||||
(version "0.19.0")
|
(version "0.20.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "trio" version))
|
(uri (pypi-uri "trio" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1qgg4zhca81dxc1nlmcr5pl1bclmvdp3niqbyslwxs65bs732pl9"))))
|
(base32 "0w30cwmdwfa8zq2agqv3h62jzwwsk7ms8f683ag8f3jx279m42k7"))))
|
||||||
(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 'patch-sleep
|
||||||
|
(lambda _
|
||||||
|
(substitute* "trio/tests/test_subprocess.py"
|
||||||
|
(("/bin/sleep")
|
||||||
|
(which "sleep")))))
|
||||||
(add-before 'check 'change-home
|
(add-before 'check 'change-home
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Tests require a writable home.
|
;; Tests require a writable home.
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")))
|
||||||
#t))
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "pytest" "-vv" "-k"
|
(invoke "pytest" "-vv"
|
||||||
|
"-n" (number->string (parallel-job-count))
|
||||||
|
"-k"
|
||||||
(string-append
|
(string-append
|
||||||
;; This test times out.
|
;; This test times out.
|
||||||
"not test_ki_protection_works"
|
"not test_ki_protection_works"
|
||||||
|
@ -24454,7 +24460,10 @@ (define-public python-trio
|
||||||
" and not test_run_in_trio_thread_ki"
|
" and not test_run_in_trio_thread_ki"
|
||||||
" and not test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage"
|
" and not test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage"
|
||||||
" and not test_nursery_cancel_doesnt_create_cyclic_garbage"
|
" and not test_nursery_cancel_doesnt_create_cyclic_garbage"
|
||||||
|
" and not test_cancel_scope_exit_doesnt_create_cyclic_garbage"
|
||||||
" and not test_locals_destroyed_promptly_on_cancel"
|
" and not test_locals_destroyed_promptly_on_cancel"
|
||||||
|
" and not test_ipython_exc_handler"
|
||||||
|
" and not test_for_leaking_fds"
|
||||||
;; These try to raise KeyboardInterrupt which does not work
|
;; These try to raise KeyboardInterrupt which does not work
|
||||||
;; in the build environment.
|
;; in the build environment.
|
||||||
" and not test_ki_self"
|
" and not test_ki_self"
|
||||||
|
@ -24463,7 +24472,9 @@ (define-public python-trio
|
||||||
" and not test_getnameinfo"
|
" and not test_getnameinfo"
|
||||||
" and not test_SocketType_resolve"
|
" and not test_SocketType_resolve"
|
||||||
;; OSError: protocol not found.
|
;; OSError: protocol not found.
|
||||||
" and not test_getprotobyname"))))))))
|
" and not test_getprotobyname"
|
||||||
|
;; EOFError: Ran out of input.
|
||||||
|
" and not test_static_tool_sees_all_symbols"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-astor
|
(list python-astor
|
||||||
python-ipython
|
python-ipython
|
||||||
|
@ -24471,6 +24482,7 @@ (define-public python-trio
|
||||||
python-pylint
|
python-pylint
|
||||||
python-pyopenssl
|
python-pyopenssl
|
||||||
python-pytest
|
python-pytest
|
||||||
|
python-pytest-xdist
|
||||||
python-pytest-cov
|
python-pytest-cov
|
||||||
python-trustme))
|
python-trustme))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
Loading…
Reference in a new issue