~ruther/guix-local

cda9991258be31657f74e5e2aec56a9a23e855ca — Efraim Flashner 1 year, 5 months ago a69a336
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
1 files changed, 13 insertions(+), 1 deletions(-)

M gnu/packages/python-web.scm
M gnu/packages/python-web.scm => gnu/packages/python-web.scm +13 -1
@@ 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