unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: kiasoc5--- via Guix-patches via <guix-patches@gnu.org>
To: 54601@debbugs.gnu.org
Subject: [bug#54601] Add python-flask-compress and python-flask-seasurf
Date: Sun, 27 Mar 2022 21:43:08 +0200 (CEST)	[thread overview]
Message-ID: <MzBtpau--3-2@tutanota.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-Add-python-flask-compress.patch --]
[-- Type: text/x-patch, Size: 1619 bytes --]

From 0d09e7fb5d68f30995663d9ff9621a234678c546 Mon Sep 17 00:00:00 2001
From: kiasoc5 <kiasoc5@tutanota.com>
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


[-- Attachment #3: 0002-gnu-Add-python-flask-seasurf.patch --]
[-- Type: text/x-patch, Size: 1615 bytes --]

From 7664077a8444286755cf82168d7dc2ad7efb06c1 Mon Sep 17 00:00:00 2001
From: kiasoc5 <kiasoc5@tutanota.com>
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


             reply	other threads:[~2022-03-27 19:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-27 19:43 kiasoc5--- via Guix-patches via [this message]
2022-03-27 19:47 ` [bug#54601] Add python-flask-compress and python-flask-seasurf Maxime Devos
2022-03-27 20:49   ` kiasoc5--- via Guix-patches via
2022-03-28 12:22     ` Maxime Devos
2023-07-10 11:29 ` bug#54601: " Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MzBtpau--3-2@tutanota.com \
    --to=guix-patches@gnu.org \
    --cc=54601@debbugs.gnu.org \
    --cc=kiasoc5@tutanota.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).