aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-03-04 18:58:10 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-03-05 12:57:41 +0200
commitcda9991258be31657f74e5e2aec56a9a23e855ca (patch)
tree34e205a34c11d929ce5a8c2d145a4730291e7ded
parenta69a33645183fa3d55d54fe1534a9bb2a33a24a4 (diff)
downloadguix-cda9991258be31657f74e5e2aec56a9a23e855ca.tar.gz
guix-cda9991258be31657f74e5e2aec56a9a23e855ca.zip
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
-rw-r--r--gnu/packages/python-web.scm14
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index bf82d1282a..53547fed84 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