From cda9991258be31657f74e5e2aec56a9a23e855ca Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 4 Mar 2025 18:58:10 +0200 Subject: gnu: python-uvloop: Fix build on riscv64-linux. * gnu/packages/python-web.scm (python-uvloop)[arguments]: When building for riscv64-linux add a phase to extend some timeouts and skip 2 more tests. Change-Id: Ie40bd546540cfef70b604dc2f65e2952dd17bdf3 --- gnu/packages/python-web.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index bf82d1282a6..53547fed846 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7253,6 +7253,14 @@ hard or impossible to fix in cssselect.") (substitute* "uvloop/loop.pyx" (("b'/bin/sh'") (string-append "b'" (which "sh") "'"))) #t)) + ,@(if (target-riscv64?) + `((add-after 'unpack 'adjust-test-timeouts + (lambda _ + (substitute* '("tests/test_tcp.py" + "tests/test_unix.py") + (("SSL_HANDSHAKE_TIMEOUT = 15\\.0") + "SSL_HANDSHAKE_TIMEOUT = 30.0"))))) + '()) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? @@ -7279,7 +7287,11 @@ hard or impossible to fix in cssselect.") "and not test_process_streams_redirect " ;; FileNotFoundError: [Errno 2] No such file or ;; directory - "and not test_process_env_2")))))))) + "and not test_process_env_2" + ,@(if (target-riscv64?) + `(" and not test_renegotiation" + " and not test_getaddrinfo_21") + `()))))))))) (native-inputs (list python-aiohttp python-cython-3 -- cgit v1.3