gnu: python-trio: Enable building on more architectures.

* gnu/packages/python-xyz.scm (python-trio)[arguments]: Adjust the
test-flags based on the package inputs.
[native-inputs]: Only include python-pyopenssl and python-trustme on
systems which have support for them.

Change-Id: I4f26d7af0dc0ce996c58b60002385dce9f9fbf50
This commit is contained in:
Efraim Flashner 2025-01-21 10:02:39 +02:00
parent 1b88114ff6
commit 19e7200286
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -30660,7 +30660,7 @@ project.")
(arguments (arguments
(list (list
#:test-flags #:test-flags
'(list "-k" `(list "-k"
(string-append (string-append
;; This tests times out. ;; This tests times out.
"not test_ki_protection_works" "not test_ki_protection_works"
@ -30692,6 +30692,11 @@ _cyclic_garbage"
" and not test_getprotobyname" " and not test_getprotobyname"
;; EOFError: Ran out of input. ;; EOFError: Ran out of input.
" and not test_static_tool_sees_all_symbols") " and not test_static_tool_sees_all_symbols")
,@(if (package? (this-package-native-input "python-trustme"))
'()
`("--ignore=src/trio/_tests/test_dtls.py"
"--ignore=src/trio/_tests/test_highlevel_ssl_helpers.py"
"--ignore=src/trio/_tests/test_ssl.py"))
;; It rerquires black and ruff to generate a final report. ;; It rerquires black and ruff to generate a final report.
"--ignore=src/trio/_tests/tools/test_gen_exports.py" "--ignore=src/trio/_tests/tools/test_gen_exports.py"
"src/trio/_tests") "src/trio/_tests")
@ -30708,11 +30713,16 @@ _cyclic_garbage"
;; #$output is first in path which causes "import file mismatch" ;; #$output is first in path which causes "import file mismatch"
(setenv "PYTHONPATH" (string-append (getcwd) "/src:$PYTHONPATH"))))))) (setenv "PYTHONPATH" (string-append (getcwd) "/src:$PYTHONPATH")))))))
(native-inputs (native-inputs
(list python-pyopenssl (append
python-pytest (if (supported-package? python-pyopenssl)
python-setuptools (list python-pyopenssl)
python-trustme '())
python-wheel)) (list python-pytest
python-setuptools)
(if (supported-package? python-trustme)
(list python-trustme)
'())
(list python-wheel)))
(propagated-inputs (propagated-inputs
(list python-attrs (list python-attrs
python-cffi python-cffi