summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2025-01-06 11:56:32 +0100
committerRicardo Wurmus <rekado@elephly.net>2025-01-20 21:37:36 +0100
commit9bf8900bdfe5ee89206629b70e34c3ba1f750cbb (patch)
tree2320aaa77dc6d9b88b4caa128eaa876bf0ac6a64 /gnu
parentcbff588f56dcd0cb2ddd2f72f636078468890b02 (diff)
gnu: python-asgi-lifespan: Update to 2.1.0.
* gnu/packages/python-web.scm (python-asgi-lifespan): Update to 2.1.0. [arguments]: Update list of disabled tests; add phase 'compatibility. [native-inputs]: Add python-httpx. Change-Id: Ib4c01ec059920481eefbbe908ba2fdaa9cf3484d
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-web.scm35
1 files changed, 24 insertions, 11 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index df2b0fd5c26..9a5140eb614 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1026,7 +1026,7 @@ that is then compared to a @code{csrftoken} hidden form field or a
(define-public python-asgi-lifespan
(package
(name "python-asgi-lifespan")
- (version "1.0.1")
+ (version "2.1.0")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
@@ -1035,7 +1035,7 @@ that is then compared to a @code{csrftoken} hidden form field or a
(file-name (git-file-name name version))
(sha256
(base32
- "10a5ci9ddr8wnjf3wai7xifbbplirhyrgvw4p28q0ha63cvhb2j2"))))
+ "0iqa3h61gsq1qd6j9v68k989596m9n9k1dx8zv6135rmhzzrs296"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -1043,15 +1043,28 @@ that is then compared to a @code{csrftoken} hidden form field or a
'(list "-c" "/dev/null" ;ignore coverage-related options
"-k"
(string-append
- ;; XXX: Some tests fail because of a 'lifespan.shutdown.failed'
- ;; extra event, perhaps because our version of trio is older.
- "not (test_lifespan_manager[asyncio-None-ValueError-None]"
- " or test_lifespan_manager[asyncio-ValueError-None-None]"
- " or test_lifespan_manager[asyncio-ValueError-ValueError-None]"
- " or test_lifespan_manager[trio-None-ValueError-None]"
- " or test_lifespan_manager[trio-ValueError-None-None]"
- " or test_lifespan_manager[trio-ValueError-ValueError-None])"))))
- (native-inputs (list python-pytest
+ ;; XXX: Some tests fail because of "Exceptions from Trio nursery"
+ "not (test_lifespan_manager[trio-None-None-StartupFailed]"
+ " or test_lifespan_manager[trio-None-BodyFailed-None]"
+ " or test_lifespan_manager[trio-None-BodyFailed-StartupFailed]"
+ " or test_lifespan_manager[trio-ShutdownFailed-None-None]"
+ " or test_lifespan_manager[trio-ShutdownFailed-None-StartupFailed]"
+ " or test_lifespan_manager[trio-ShutdownFailed-BodyFailed-StartupFailed]"
+ " or test_lifespan_timeout[trio-slow_shutdown]"
+ " or test_lifespan_not_supported[trio-http_only]"
+ " or test_lifespan_not_supported[trio-http_no_assert]"
+ " or test_lifespan_not_supported[trio-http_no_assert_before_receive_request]"
+ ")"))
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'compatibility
+ (lambda _
+ ;; httpx version 0.28.0 removed the "app" shortcut.
+ (substitute* "tests/test_manager.py"
+ (("app=manager.app")
+ "transport=httpx.ASGITransport(manager.app)")))))))
+ (native-inputs (list python-httpx
+ python-pytest
python-pytest-asyncio
python-pytest-trio
python-starlette