Subject: bug#54601: closed (Add python-flask-compress and python-flask-seasurf)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 10 Jul 2023 11:31:02 +0000

Your bug report

#54601: Add python-flask-compress and python-flask-seasurf

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
54601: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54601
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Add python-flask-compress and python-flask-seasurf
From: Ricardo Wurmus <[email-masked]>
To: [email-masked]
Date: Mon, 10 Jul 2023 13:29:16 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

I updated the patches for the latest versions, used the
pyproject-build-system, and trimmed the descriptions a bit.

Pushed to the master branch.  Thank you!

-- 
Ricardo

Subject: Add python-flask-compress and python-flask-seasurf
From: [email-masked]
To: Guix Patches <[email-masked]>
Date: Sun, 27 Mar 2022 21:43:08 +0200 (CEST)
List-Id: <debbugs-submit.debbugs.gnu.org>

>From 0d09e7fb5d68f30995663d9ff9621a234678c546 Mon Sep 17 00:00:00 2001
From: kiasoc5 <[email-masked]>
Date: Sun, 27 Mar 2022 15:27:43 -0400
Subject: [PATCH 1/2] gnu: Add python-flask-compress.

* gnu/packages/python-web.scm (python-flask-compress): New variable.
---
 gnu/packages/python-web.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 9c2a48166a..3de2629b29 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6388,3 +6388,23 @@ (define-public python-tweepy
     (description "This package provides @code{Tweepy}, an easy-to-use Python
 library for accessing the Twitter API.")
     (license license:expat)))
+
+(define-public python-flask-compress
+  (package
+    (name "python-flask-compress")
+    (version "1.11")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "Flask-Compress" version))
+        (sha256
+          (base32 "0762n6g1rz1n01dh0y16fgpi262kl01m0z9liv52asvd8hng6sgm"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-brotli python-flask))
+    (native-inputs (list python-setuptools-scm))
+    (home-page "https://github.com/colour-science/flask-compress")
+    (synopsis
+      "Compress responses in your Flask app with gzip, deflate or brotli.")
+    (description
+      "Compress responses in your Flask app with gzip, deflate or brotli.")
+    (license license:expat)))

base-commit: 2344fb10972a4cefead8e7aa3e0b807da4cf4570
prerequisite-patch-id: 7bac83669fb48a2cf3bf087016093da017ba7ec5
-- 
2.35.1

>From 7664077a8444286755cf82168d7dc2ad7efb06c1 Mon Sep 17 00:00:00 2001
From: kiasoc5 <[email-masked]>
Date: Sun, 27 Mar 2022 15:27:59 -0400
Subject: [PATCH 2/2] gnu: Add python-flask-seasurf.

* gnu/packages/python-web.scm (python-flask-seasurf): New variable.
---
 gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 3de2629b29..931d1500b7 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6408,3 +6408,28 @@ (define-public python-flask-compress
     (description
       "Compress responses in your Flask app with gzip, deflate or brotli.")
     (license license:expat)))
+
+(define-public python-flask-seasurf
+  (package
+  (name "python-flask-seasurf")
+  (version "0.3.1")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "Flask-SeaSurf" version))
+      (sha256
+        (base32 "04yfwln40iji7vn517mmkflnzxy7wa11yfhs124rch4s7pqhvygz"))))
+  (build-system python-build-system)
+    (arguments
+         `(#:phases
+           (modify-phases %standard-phases
+             (replace 'check
+               (lambda* (#:key tests? #:allow-other-keys)
+                 (when tests?
+                   (invoke "python" "-m" "unittest")))))))
+  (propagated-inputs (list python-flask))
+  (native-inputs (list python-tox))
+  (home-page "https://github.com/maxcountryman/flask-seasurf/")
+  (synopsis "An updated CSRF extension for Flask.")
+  (description "An updated CSRF extension for Flask.")
+  (license license:bsd-3)))
-- 
2.35.1