summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-06-11 09:37:38 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-08-08 23:02:00 +0100
commit56fee24f0a383a51279df6a7a583eec10cc1bc78 (patch)
tree0b7dd5b977fc63f98f2baa6a5a818dfabb8669a0 /gnu/packages/python-web.scm
parent6460f48876b7fd0c556d43ba79ddd5539c95ba00 (diff)
gnu: python-uvloop: Update to 0.22.1.
* gnu/packages/python-web.scm (python-uvloop): Update to 0.22.1. [source]: Switch to git-fetch. <snippet>: Adjust it as there is no "uvloop/loop.c" in git source. [arguments] <test-flags>: Run more tests. [phases]{preparation}: Add fixture for "env" command path. [native-inputs]: Remove python-wheel. Change-Id: I59f6f43708ed3c595017b0440c0b4620aa087403
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm36
1 files changed, 14 insertions, 22 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 97815424eda..ddc63feb97c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -10252,20 +10252,24 @@ hard or impossible to fix in cssselect.")
10252(define-public python-uvloop 10252(define-public python-uvloop
10253 (package 10253 (package
10254 (name "python-uvloop") 10254 (name "python-uvloop")
10255 (version "0.21.0") 10255 (version "0.22.1")
10256 (source 10256 (source
10257 (origin 10257 (origin
10258 (method url-fetch) 10258 (method git-fetch)
10259 (uri (pypi-uri "uvloop" version)) 10259 (uri (git-reference
10260 (url "https://github.com/MagicStack/uvloop")
10261 (commit (string-append "v" version))))
10262 (file-name (git-file-name name version))
10260 (sha256 10263 (sha256
10261 (base32 "1qq46ym3ymzfn4j6fnykfmr1f4qnb7x7p15dlw37hi38v87jpw9v")) 10264 (base32 "1qbykwwz4ac3f7472g22z4i5rrd5kcr8hmxn5kswmja57j1nxlpl"))
10262 (modules '((guix build utils))) 10265 (modules '((guix build utils)))
10263 (snippet 10266 (snippet
10264 '(begin (delete-file-recursively "vendor") 10267 '(begin
10265 (delete-file "uvloop/loop.c"))))) 10268 (delete-file-recursively "vendor")))))
10266 (build-system pyproject-build-system) 10269 (build-system pyproject-build-system)
10267 (arguments 10270 (arguments
10268 (list 10271 (list
10272 ;; tests: 470 passed, 32 skipped, 8 deselected, 5 warnings, 104 subtests passed
10269 #:test-flags 10273 #:test-flags
10270 ;; The tests are prone to get stuck. Use pytest-timeout’s --timeout flag 10274 ;; The tests are prone to get stuck. Use pytest-timeout’s --timeout flag
10271 ;; to get a meaningful idea about where. 10275 ;; to get a meaningful idea about where.
@@ -10278,19 +10282,6 @@ hard or impossible to fix in cssselect.")
10278 "test_signals_sigint_pycode_stop" 10282 "test_signals_sigint_pycode_stop"
10279 "test_signals_sigint_uvcode" 10283 "test_signals_sigint_uvcode"
10280 "test_signals_sigint_uvcode_two_loop_runs" 10284 "test_signals_sigint_uvcode_two_loop_runs"
10281 ;; This test is racy and prone to get stuck on
10282 ;; various platforms, possibly a aiohttp issue:
10283 ;; https://github.com/MagicStack/uvloop/issues/412
10284 "test_remote_shutdown_receives_trailing_data"
10285 ;; It looks like pytest is preventing
10286 ;; custom stdout/stderr redirection,
10287 ;; even with -s.
10288 "test_process_streams_redirect"
10289 ;; FileNotFoundError: [Errno 2] No such file or
10290 ;; directory
10291 "test_process_env_2"
10292 ;; socket.gaierror: [Errno -2] Name or service not known
10293 "test_getaddrinfo_21"
10294 #$@(if (target-riscv64?) 10285 #$@(if (target-riscv64?)
10295 `("test_renegotiation") 10286 `("test_renegotiation")
10296 `())) 10287 `()))
@@ -10304,7 +10295,9 @@ hard or impossible to fix in cssselect.")
10304 "self.use_system_libuv = True")) 10295 "self.use_system_libuv = True"))
10305 ;; Replace hardcoded shell command. 10296 ;; Replace hardcoded shell command.
10306 (substitute* "uvloop/loop.pyx" 10297 (substitute* "uvloop/loop.pyx"
10307 (("b'/bin/sh'") (string-append "b'" (which "sh") "'"))))) 10298 (("b'/bin/sh'") (string-append "b'" (which "sh") "'")))
10299 (substitute* "tests/test_process.py"
10300 (("'env'") (string-append "'" (which "env") "'")))))
10308 #$@(if (target-riscv64?) 10301 #$@(if (target-riscv64?)
10309 `((add-after 'unpack 'adjust-test-timeouts 10302 `((add-after 'unpack 'adjust-test-timeouts
10310 (lambda _ 10303 (lambda _
@@ -10326,8 +10319,7 @@ hard or impossible to fix in cssselect.")
10326 python-pyopenssl 10319 python-pyopenssl
10327 python-pytest 10320 python-pytest
10328 python-pytest-timeout 10321 python-pytest-timeout
10329 python-setuptools 10322 python-setuptools))
10330 python-wheel))
10331 (inputs 10323 (inputs
10332 (list libuv)) 10324 (list libuv))
10333 (home-page "https://github.com/MagicStack/uvloop") 10325 (home-page "https://github.com/MagicStack/uvloop")