From 18e9141d0135697068c3b109c13afbf46864f51c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 13 Mar 2025 13:00:59 +0000 Subject: gnu: python-uvloop: Fix indentation. * gnu/packages/python-web.scm (python-uvloop): Fix indentation. Change-Id: I72f6674c870317ebec48933e2bb5744bae6e0387 --- gnu/packages/python-web.scm | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 5ef7972365f..e5a1e26004b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7301,29 +7301,29 @@ hard or impossible to fix in cssselect.") `())) " and not ")) #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'preparations - (lambda _ - ;; Use packaged libuv. - (substitute* "setup.py" (("self.use_system_libuv = False") - "self.use_system_libuv = True")) - ;; Replace hardcoded shell command. - (substitute* "uvloop/loop.pyx" - (("b'/bin/sh'") (string-append "b'" (which "sh") "'"))))) - ,@(if (target-riscv64?) - `((add-after 'unpack 'adjust-test-timeouts + #~(modify-phases %standard-phases + (add-after 'unpack 'preparations + (lambda _ + ;; Use packaged libuv. + (substitute* "setup.py" (("self.use_system_libuv = False") + "self.use_system_libuv = True")) + ;; Replace hardcoded shell command. + (substitute* "uvloop/loop.pyx" + (("b'/bin/sh'") (string-append "b'" (which "sh") "'"))))) + ,@(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"))))) - '()) - (add-before 'check 'pre-check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; Remove Python module, which conflicts with the installed - ;; version, but lacks the built C module. - (delete-file-recursively "uvloop"))))))) + '()) + (add-before 'check 'pre-check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Remove Python module, which conflicts with the installed + ;; version, but lacks the built C module. + (delete-file-recursively "uvloop"))))))) (native-inputs (list python-aiohttp python-cython-3 -- cgit v1.3