mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-trio: Use pyproject-build-system.
* gnu/packages/python-xyz.scm (python-trio)[build-system]: Use pyproject-build-system. [arguments]: Replace custom 'check phase with #:test-flags. Change-Id: I246933a17c1d0a669ead0292145d9b986ffca185
This commit is contained in:
parent
8928764688
commit
4a3891e4a9
1 changed files with 39 additions and 38 deletions
|
@ -29874,10 +29874,42 @@ project.")
|
||||||
(uri (pypi-uri "trio" version))
|
(uri (pypi-uri "trio" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "04qwzy4295ajxpns0hrmn3asma80sjpimzpb3i877vwynsvkjgsj"))))
|
(base32 "04qwzy4295ajxpns0hrmn3asma80sjpimzpb3i877vwynsvkjgsj"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
|
'(list "-k"
|
||||||
|
(string-append
|
||||||
|
;; This test times out.
|
||||||
|
"not test_ki_protection_works"
|
||||||
|
;; 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_guest_mode_ki"
|
||||||
|
" and not test_run_in_trio_thread_ki"
|
||||||
|
" and not test_simple_cancel_scope_usage_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_ipython_exc_handler"
|
||||||
|
" and not test_for_leaking_fds"
|
||||||
|
;; Signals don’t work in the build sandbox.
|
||||||
|
" and not test_open_signal_receiver"
|
||||||
|
;; These try to raise KeyboardInterrupt which does not work
|
||||||
|
;; in the build environment.
|
||||||
|
" and not test_ki_self"
|
||||||
|
" and not test_ki_wakes_us_up"
|
||||||
|
;; Failure in name resolution.
|
||||||
|
" and not test_getnameinfo"
|
||||||
|
" and not test_SocketType_resolve"
|
||||||
|
;; OSError: protocol not found.
|
||||||
|
" and not test_getprotobyname"
|
||||||
|
;; EOFError: Ran out of input.
|
||||||
|
" and not test_static_tool_sees_all_symbols")
|
||||||
|
"trio/tests")
|
||||||
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-sleep
|
(add-after 'unpack 'patch-sleep
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "trio/tests/test_subprocess.py"
|
(substitute* "trio/tests/test_subprocess.py"
|
||||||
|
@ -29886,40 +29918,7 @@ project.")
|
||||||
(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"))))))
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "pytest" "-vv"
|
|
||||||
"-n" (number->string (parallel-job-count))
|
|
||||||
"-k"
|
|
||||||
(string-append
|
|
||||||
;; This test times out.
|
|
||||||
"not test_ki_protection_works"
|
|
||||||
;; Assertion errors.
|
|
||||||
" and not test_guest_mode_ki"
|
|
||||||
" and not test_run_in_trio_thread_ki"
|
|
||||||
" and not test_simple_cancel_scope_usage_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_ipython_exc_handler"
|
|
||||||
" and not test_for_leaking_fds"
|
|
||||||
;; Signals don’t work in the build sandbox.
|
|
||||||
" and not test_open_signal_receiver"
|
|
||||||
;; These try to raise KeyboardInterrupt which does not work
|
|
||||||
;; in the build environment.
|
|
||||||
" and not test_ki_self"
|
|
||||||
" and not test_ki_wakes_us_up"
|
|
||||||
;; Failure in name resolution.
|
|
||||||
" and not test_getnameinfo"
|
|
||||||
" and not test_SocketType_resolve"
|
|
||||||
;; OSError: protocol not found.
|
|
||||||
" and not test_getprotobyname"
|
|
||||||
;; EOFError: Ran out of input.
|
|
||||||
" and not test_static_tool_sees_all_symbols")
|
|
||||||
"trio/tests")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-astor
|
(list python-astor
|
||||||
python-ipython
|
python-ipython
|
||||||
|
@ -29929,7 +29928,9 @@ _cyclic_garbage"
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-xdist
|
python-pytest-xdist
|
||||||
python-pytest-cov
|
python-pytest-cov
|
||||||
python-trustme))
|
python-trustme
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-async-generator
|
(list python-async-generator
|
||||||
python-attrs
|
python-attrs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue