guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: Add python-flask-seasurf.


From: guix-commits
Subject: 02/03: gnu: Add python-flask-seasurf.
Date: Mon, 10 Jul 2023 07:24:23 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit e3d9d896b540f82e4511f2bd6ae6373390ee2d4d
Author: kiasoc5 <kiasoc5@tutanota.com>
AuthorDate: Mon Jul 10 13:10:34 2023 +0200

    gnu: Add python-flask-seasurf.
    
    * gnu/packages/python-web.scm (python-flask-seasurf): New variable.
    
    Co-authored-by: Ricardo Wurmus <rekado@elephly.net>
---
 gnu/packages/python-web.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8021eea830..61a21f9c94 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3679,6 +3679,29 @@ files with gzip, deflate or brotli.  Flask-Compress both 
adds the various
 headers required for a compressed response and compresses the response data.")
     (license license:expat)))
 
+(define-public python-flask-seasurf
+  (package
+    (name "python-flask-seasurf")
+    (version "1.1.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "Flask-SeaSurf" version))
+              (sha256
+               (base32
+                "1aaib4n27q0f2alp87mhv3f79vg7qckp71rphbd0mb39qw470lsl"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #false)) ;there are none
+    (propagated-inputs (list python-flask))
+    (home-page "https://github.com/maxcountryman/flask-seasurf/";)
+    (synopsis "CSRF extension for Flask")
+    (description "SeaSurf is a Flask extension for preventing cross-site
+request forgery (CSRF).  CSRF attacks are problematic because the mechanism
+they use is relatively easy to exploit.  This extension attempts to aid you in
+securing your application from such attacks.  This extension is based on the
+Django middleware.")
+    (license license:bsd-3)))
+
 (define-public python-flask-wtf
   (package
     (name "python-flask-wtf")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]