summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-01-21 10:02:39 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-21 10:02:39 +0200
commit19e7200286989a7afc90adecb415cf09093cc4dd (patch)
tree737455f1c11c66eed6e2c475fdf30eeb43bd2e62 /gnu/packages/python-xyz.scm
parent1b88114ff67cdbb3253c3e44e16d2f99acc7a588 (diff)
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
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm22
1 files changed, 16 insertions, 6 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0334dfbb44..6be6380499 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30660,7 +30660,7 @@ project.")
(arguments
(list
#:test-flags
- '(list "-k"
+ `(list "-k"
(string-append
;; This tests times out.
"not test_ki_protection_works"
@@ -30692,6 +30692,11 @@ _cyclic_garbage"
" and not test_getprotobyname"
;; EOFError: Ran out of input.
" 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.
"--ignore=src/trio/_tests/tools/test_gen_exports.py"
"src/trio/_tests")
@@ -30708,11 +30713,16 @@ _cyclic_garbage"
;; #$output is first in path which causes "import file mismatch"
(setenv "PYTHONPATH" (string-append (getcwd) "/src:$PYTHONPATH")))))))
(native-inputs
- (list python-pyopenssl
- python-pytest
- python-setuptools
- python-trustme
- python-wheel))
+ (append
+ (if (supported-package? python-pyopenssl)
+ (list python-pyopenssl)
+ '())
+ (list python-pytest
+ python-setuptools)
+ (if (supported-package? python-trustme)
+ (list python-trustme)
+ '())
+ (list python-wheel)))
(propagated-inputs
(list python-attrs
python-cffi