[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
226/455: gnu: python-asgi-csrf: Update to 0.11.
From: |
guix-commits |
Subject: |
226/455: gnu: python-asgi-csrf: Update to 0.11. |
Date: |
Mon, 20 Jan 2025 15:47:06 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 2839bb205d15f5970e7623f90fe1d65ffd7ddca3
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Jan 10 21:39:17 2025 +0100
gnu: python-asgi-csrf: Update to 0.11.
* gnu/packages/python-web.scm (python-asgi-csrf): Update to 0.11.
[arguments]: Remove.
Change-Id: I4814278b838f978d35a61fde8d3be9d6337d7eea
---
gnu/packages/python-web.scm | 34 ++--------------------------------
1 file changed, 2 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8aef710565..0ea4c23d68 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -985,7 +985,7 @@ WSGI. This package includes libraries for implementing
ASGI servers.")
(define-public python-asgi-csrf
(package
(name "python-asgi-csrf")
- (version "0.9")
+ (version "0.11")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
@@ -994,38 +994,8 @@ WSGI. This package includes libraries for implementing
ASGI servers.")
(file-name (git-file-name name version))
(sha256
(base32
- "1j134mjh0ff61rvkm3q67m463j1bhyxc9dwsdany3scnd4vsqqws"))))
+ "1dn9v47z2b599cnwahxvzsll2w28940ycgh5skxgq04vcqqssf29"))))
(build-system pyproject-build-system)
- (arguments
- (list #:test-flags
- ;; Provide a null config to avoid the extraneous dependency on
- ;; python-pytest-coverage.
- #~(list "-c" "/dev/null"
- ;; Disable two failing tests (see:
- ;; https://github.com/simonw/asgi-csrf/issues/24).
- "-k" (string-append
- "not (test_multipart "
- "or test_multipart_failure_wrong_token)"))
- #:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'compatibility
- (lambda _
- ;; httpx version 0.28.0 removed the "app" shortcut.
- (substitute* "test_asgi_csrf.py"
- (("httpx.AsyncClient\\(app=app_csrf\\)")
-
"httpx.AsyncClient(transport=httpx.ASGITransport(app_csrf))")
- (("httpx.AsyncClient\\(app=hello_world_app\\)")
-
"httpx.AsyncClient(transport=httpx.ASGITransport(hello_world_app))")
- (("httpx.AsyncClient\\(app=app\\)")
- "httpx.AsyncClient(transport=httpx.ASGITransport(app))")
- ;; The remaining invocations are harder to patch, so we
- ;; define a wrapper.
- (("^SECRET =")
- "def asgi_csrf_transport(*args, **kwargs):
- return httpx.ASGITransport(asgi_csrf(*args, **kwargs))
-
-SECRET =")
- (("app=asgi_csrf") "transport=asgi_csrf_transport")))))))
(propagated-inputs (list python-itsdangerous python-multipart))
(native-inputs (list python-asgi-lifespan
python-httpx
- 212/455: gnu: python-columnize: Add missing inputs., (continued)
- 212/455: gnu: python-columnize: Add missing inputs., guix-commits, 2025/01/20
- 208/455: gnu: python-episcanpy: Add missing input., guix-commits, 2025/01/20
- 202/455: gnu: python-apscheduler: Add missing inputs., guix-commits, 2025/01/20
- 221/455: gnu: python-asdf-astropy: Add missing input., guix-commits, 2025/01/20
- 201/455: gnu: python-cvxpy: Add missing input., guix-commits, 2025/01/20
- 230/455: gnu: python-swagger-spec-validator: Update to 3.0.4., guix-commits, 2025/01/20
- 218/455: gnu: python-astropy-healpix: Add missing input., guix-commits, 2025/01/20
- 206/455: gnu: python-metacells: Update to 0.9.5., guix-commits, 2025/01/20
- 200/455: gnu: python-scikit-survival: Add missing input., guix-commits, 2025/01/20
- 207/455: gnu: python-celltypist: Add missing input., guix-commits, 2025/01/20
- 226/455: gnu: python-asgi-csrf: Update to 0.11.,
guix-commits <=
- 227/455: gnu: python-fastapi: Enable multipart tests., guix-commits, 2025/01/20
- 217/455: gnu: python-asgi-csrf: Make compatibly with httpx 0.28.0+., guix-commits, 2025/01/20
- 234/455: gnu: python-matplotx: Add missing inputs., guix-commits, 2025/01/20
- 233/455: gnu: datasette: Update to 1.0a16., guix-commits, 2025/01/20
- 252/455: gnu: python-librosa: Update to 0.10.2.post1., guix-commits, 2025/01/20
- 253/455: gnu: instrain: Update to 1.9.0., guix-commits, 2025/01/20
- 250/455: gnu: python-audioread: Update to 3.0.1., guix-commits, 2025/01/20
- 238/455: gnu: python-pytest-datafiles: Add missing inputs., guix-commits, 2025/01/20
- 255/455: gnu: python-django-haystack: Update to 3.3.0., guix-commits, 2025/01/20
- 260/455: gnu: python-django-jinja: Update to 2.11.0., guix-commits, 2025/01/20