[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60838] [PATCH v3 5/9] gnu: Add python-asgi-csrf.
From: |
Felix Gruber |
Subject: |
[bug#60838] [PATCH v3 5/9] gnu: Add python-asgi-csrf. |
Date: |
Sun, 26 Mar 2023 19:43:31 +0000 |
* gnu/packages/python-web.scm (python-asgi-csrf): New variable.
---
gnu/packages/python-web.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8e3f778919..0be4078513 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -570,6 +570,33 @@ (define-public python-asgiref
WSGI. This package includes libraries for implementing ASGI servers.")
(license license:bsd-3)))
+(define-public python-asgi-csrf
+ (package
+ (name "python-asgi-csrf")
+ (version "0.9")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "asgi-csrf" version))
+ (sha256
+ (base32
+ "06klgxfxzjfkyjky3rkvmf2r07r7r2my53qq7g9qy6mcmvfkp7bf"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-itsdangerous python-multipart))
+ (native-inputs (list python-asgi-lifespan
+ python-httpx
+ python-pytest
+ python-pytest-asyncio
+ python-pytest-cov
+ python-starlette))
+ (home-page "https://github.com/simonw/asgi-csrf")
+ (synopsis "ASGI middleware for protecting against CSRF attacks")
+ (description "This Asynchronous Server Gateway Interface (ASGI)
+middleware protects against Cross-site request forgery (CSRF) attacks.
+It implements the Double Submit Cookie pattern, where a cookie is set
+that is then compared to a @code{csrftoken} hidden form field or a
+@code{x-csrftoken} HTTP header.")
+ (license license:asl2.0)))
+
(define-public python-asgi-lifespan
(package
(name "python-asgi-lifespan")
--
2.39.2
- [bug#60838] [PATCH 0/8] Add datasette and python-sqlite-utils., Maxim Cournoyer, 2023/03/21
- [bug#60838] [PATCH v3 0/9] Add datasette and python-sqlite-utils., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 1/9] gnu: Add python-click-default-group-wheel., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 2/9] gnu: Add python-sqlite-fts4., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 3/9] gnu: Add python-sqlite-utils., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 4/9] gnu: Add python-asgi-lifespan., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 5/9] gnu: Add python-asgi-csrf.,
Felix Gruber <=
- [bug#60838] [PATCH v3 6/9] gnu: Add python-trustme-next., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 7/9] gnu: Add python-cogapp., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 8/9] gnu: python-pytest-7.1: Depend on python-pluggy-next., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 9/9] gnu: Add datasette., Felix Gruber, 2023/03/26