From unknown Sat Jun 14 04:55:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54601] Add python-flask-compress and python-flask-seasurf Resent-From: kiasoc5@tutanota.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Mar 2022 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 54601@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.16484101946136 (code B ref -1); Sun, 27 Mar 2022 19:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Mar 2022 19:43:14 +0000 Received: from localhost ([127.0.0.1]:56604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYYnB-0001au-N8 for submit@debbugs.gnu.org; Sun, 27 Mar 2022 15:43:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:49422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYYnA-0001an-2l for submit@debbugs.gnu.org; Sun, 27 Mar 2022 15:43:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYYn9-0005Ms-Se for guix-patches@gnu.org; Sun, 27 Mar 2022 15:43:11 -0400 Received: from w1.tutanota.de ([81.3.6.162]:33618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYYn8-0005HC-5l for guix-patches@gnu.org; Sun, 27 Mar 2022 15:43:11 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id E972BFA00BA for ; Sun, 27 Mar 2022 19:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1648410188; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=S3pHrnx6b/5bghSA4k3Led8as70cBS0NYKmAl7GsC/c=; b=H4FiKjHYs08NAmq6NcwryFoubFKdbFk+eBy3PTB5M70LXVSpoY1Q6ccmJOmgrDvz ajb4GRhV+iAFxQ4qSZEHz2zx4xvLwYTP0UbnqCKDP32n1StQtGcPXwsebLZ+8BHYKqr xfTivzKbvAvGyarcSNaWPgSpIR64w/Lo+0TImCawWZ9hXR0KfL3iivBvRSUdH3f+sLt MnRjyMOn0PAum6d9pt4iwNrSuOxXSGXVJgDA2AVArJjcAvTr4Bbv4cvk3bifG43Krhr /U9EnBtFwh7RqY0A4LFF91DdpM9aZwNGE7gJ25ew7S6X9mO29fCAPFEMaouP+5UUyPn gwr5+qCfEQ== Date: Sun, 27 Mar 2022 21:43:08 +0200 (CEST) From: kiasoc5@tutanota.com Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_340991_346091381.1648410188945" Received-SPF: pass client-ip=81.3.6.162; envelope-from=kiasoc5@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) ------=_Part_340991_346091381.1648410188945 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ------=_Part_340991_346091381.1648410188945 Content-Type: text/x-patch; charset=us-ascii; name=0001-gnu-Add-python-flask-compress.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-Add-python-flask-compress.patch >From 0d09e7fb5d68f30995663d9ff9621a234678c546 Mon Sep 17 00:00:00 2001 From: kiasoc5 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 ------=_Part_340991_346091381.1648410188945 Content-Type: text/x-patch; charset=us-ascii; name=0002-gnu-Add-python-flask-seasurf.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0002-gnu-Add-python-flask-seasurf.patch >From 7664077a8444286755cf82168d7dc2ad7efb06c1 Mon Sep 17 00:00:00 2001 From: kiasoc5 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 ------=_Part_340991_346091381.1648410188945-- From unknown Sat Jun 14 04:55:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54601] Add python-flask-compress and python-flask-seasurf Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Mar 2022 19:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: kiasoc5@tutanota.com, 54601@debbugs.gnu.org Received: via spool by 54601-submit@debbugs.gnu.org id=B54601.16484104576634 (code B ref 54601); Sun, 27 Mar 2022 19:48:02 +0000 Received: (at 54601) by debbugs.gnu.org; 27 Mar 2022 19:47:37 +0000 Received: from localhost ([127.0.0.1]:56615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYYrR-0001iv-Io for submit@debbugs.gnu.org; Sun, 27 Mar 2022 15:47:37 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:43490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYYrQ-0001ic-GB for 54601@debbugs.gnu.org; Sun, 27 Mar 2022 15:47:36 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id BXnb270014UW6Th01Xnb4b; Sun, 27 Mar 2022 21:47:35 +0200 Message-ID: <43942589dee617ec9eb65bc9bb12d27407a50a3a.camel@telenet.be> From: Maxime Devos Date: Sun, 27 Mar 2022 21:47:34 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-TUWgZP728wHMpzuB5T/T" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1648410455; bh=jJPWzwg7MlXdJN/JMowpQn1nqvR3O08hS16tGXFEMmg=; h=Subject:From:To:Date:In-Reply-To:References; b=l3ofKlKyEnrsNozX1SJQwUSNehuBwpzu6F249MClz7P16mZGTYy+QRJJTxKSEyHbt vwinZkwmOoDuWvsZkHpd/cX9pbqpg2dPdfa6Dpb9k9CEJjArgGdkayadEKK6/cClXC TKPKCCizdpDtXRb6+iMEM+MGpKHKQjlAgd/h8bIgpsGdzJv3a6xR1u1hfi6HilwJQ0 de5TAAXZnoz/2FFB5r8GzwYdXnUUHsXCVwy1+0sEXVXbCxps4VGKCnddhHAiJ1kxFl XjaikH+MzX+/0UqNxriGHUnzV+uZeu4Yo5fEHOcjoYrF9Zn+L0zswBkaYGDI/DqSt+ AjKeHvLrqFZ5A== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-TUWgZP728wHMpzuB5T/T Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable kiasoc5--- via Guix-patches via schreef op zo 27-03-2022 om 21:43 [+0200]: > +=C2=A0=C2=A0=C2=A0 (synopsis > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Compress responses in your Flask app wit= h gzip, deflate or > brotli.") > +=C2=A0=C2=A0=C2=A0 (description > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Compress responses in your Flask app wit= h gzip, deflate or > brotli.") The description is missing, and =E2=80=98do foo in your Brand(TM) app=E2=80= =99 reads like marketing. =E2=80=99(guix)Synopses and Descriptions=E2=80=99 recommen= ds longer, and more descriptive, descriptions. E.g., what do =E2=80=98responses=E2=80= =99 mean here? Is it Flask-exclusive, or can it also be used outside a Flask context? Greetings, Maxime. --=-TUWgZP728wHMpzuB5T/T Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYkC/VhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7i5iAQDQiXxdJjF2Pxyz+HJZp41AUTpe tPslPheZZ4jwwCrchgD9Fu2mXALBTuRyRsWlmubfh5f0S+88Uqx3X12VHPdWYg0= =PJn/ -----END PGP SIGNATURE----- --=-TUWgZP728wHMpzuB5T/T-- From unknown Sat Jun 14 04:55:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54601] Add python-flask-compress and python-flask-seasurf Resent-From: kiasoc5@tutanota.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Mar 2022 20:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos Cc: 54601@debbugs.gnu.org Received: via spool by 54601-submit@debbugs.gnu.org id=B54601.164841420312465 (code B ref 54601); Sun, 27 Mar 2022 20:51:02 +0000 Received: (at 54601) by debbugs.gnu.org; 27 Mar 2022 20:50:03 +0000 Received: from localhost ([127.0.0.1]:56640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYZpp-0003Eq-IW for submit@debbugs.gnu.org; Sun, 27 Mar 2022 16:50:02 -0400 Received: from w1.tutanota.de ([81.3.6.162]:42650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYZpn-0003ET-Qf for 54601@debbugs.gnu.org; Sun, 27 Mar 2022 16:50:00 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id BB12AFBF4F4; Sun, 27 Mar 2022 20:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1648414193; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=Zv5yqWjfWh8ElGw76qCatltZM8GdmJOCrgH1Ii3/Hus=; b=OKqXFJnCdSXpFWWJyoyE5gUYQiomULv56Su6S1Hn/v2MBTObXEviMvY4W7nrfWYN yCh7PQK/FxZGEU1kzQBx5icBlUj8PrDjsfs0+5ItQ/sHFI8lNCnHSmg03MPfEw5xpcL vE7hf+4jWUDc/mmElVxoy2jJm/YMdUnWHBXy+3uT/qaHJ3C6+NRwV3/wRG4jG/4R1ed A1atkEGRMU7FS/IaVz5PZpbxeRDDRv4YOF8lJ8PRAzaC/CxCj7UrU4FuH5vBi+WkF1S Ge+I7Gm+txKZ6g8fEuhwCU641QXgkYMUH7Zqt3qwtlFiwBHD2uN8VRCHB3Bxlu8Dy0y cfbz3Ycsaw== Date: Sun, 27 Mar 2022 22:49:53 +0200 (CEST) From: kiasoc5@tutanota.com Message-ID: In-Reply-To: <43942589dee617ec9eb65bc9bb12d27407a50a3a.camel@telenet.be> References: <43942589dee617ec9eb65bc9bb12d27407a50a3a.camel@telenet.be> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_343139_1545941870.1648414193751" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------=_Part_343139_1545941870.1648414193751 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mar 27, 2022, 19:47 by maximedevos@telenet.be: > kiasoc5--- via Guix-patches via schreef op zo 27-03-2022 om 21:43 > [+0200]: > >> +=C2=A0=C2=A0=C2=A0 (synopsis >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Compress responses in your Flask app wi= th gzip, deflate or >> brotli.") >> +=C2=A0=C2=A0=C2=A0 (description >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Compress responses in your Flask app wi= th gzip, deflate or >> brotli.") >> > > The description is missing, and =E2=80=98do foo in your Brand(TM) app=E2= =80=99 reads > like marketing. =E2=80=99(guix)Synopses and Descriptions=E2=80=99 recomm= ends longer, > and more descriptive, descriptions. E.g., what do =E2=80=98responses=E2= =80=99 mean > here? Is it Flask-exclusive, or can it also be used outside a Flask > context? > Forgot to check that. Please see updated patches. Also removed unneeded pyt= hon-tox input. > Greetings, > Maxime. > ------=_Part_343139_1545941870.1648414193751 Content-Type: text/x-patch; charset=us-ascii; name=0001-gnu-Add-python-flask-compress.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-Add-python-flask-compress.patch >From 35aa7b6052b1096ec1d4279cda31b0cdb8484ba0 Mon Sep 17 00:00:00 2001 From: kiasoc5 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 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9c2a48166a..38164d8243 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6388,3 +6388,26 @@ (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 Flask application responses and static files.") + (description + "Compress Flask application responses and static files with gzip, deflate and brotli without +a server (like Nginx). Flask-Compress both adds the various headers required for a compressed response +and compresses the response data. Internally, every time a request is made the extension will check +if it matches one of the compressible MIME types and whether the client and the server use some common +compression algorithm, and will automatically attach the appropriate headers.") + (license license:expat))) base-commit: 2344fb10972a4cefead8e7aa3e0b807da4cf4570 prerequisite-patch-id: 7bac83669fb48a2cf3bf087016093da017ba7ec5 -- 2.35.1 ------=_Part_343139_1545941870.1648414193751 Content-Type: text/x-patch; charset=us-ascii; name=0002-gnu-Add-python-flask-seasurf.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0002-gnu-Add-python-flask-seasurf.patch >From 7406000b099aca3dfaa2cf152e2b4fa1581e60f6 Mon Sep 17 00:00:00 2001 From: kiasoc5 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 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 38164d8243..3b70ea7843 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6411,3 +6411,30 @@ (define-public python-flask-compress if it matches one of the compressible MIME types and whether the client and the server use some common compression algorithm, and will automatically attach the appropriate headers.") (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)) + (home-page "https://github.com/maxcountryman/flask-seasurf") + (synopsis "Cross-site request forgery (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))) -- 2.35.1 ------=_Part_343139_1545941870.1648414193751-- From unknown Sat Jun 14 04:55:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54601] Add python-flask-compress and python-flask-seasurf Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Mar 2022 12:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: kiasoc5@tutanota.com Cc: 54601@debbugs.gnu.org Reply-To: 54601@debbugs.gnu.org Received: via spool by 54601-submit@debbugs.gnu.org id=B54601.164847014531630 (code B ref 54601); Mon, 28 Mar 2022 12:23:01 +0000 Received: (at 54601) by debbugs.gnu.org; 28 Mar 2022 12:22:25 +0000 Received: from localhost ([127.0.0.1]:57454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYoO8-0008E6-UQ for submit@debbugs.gnu.org; Mon, 28 Mar 2022 08:22:25 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:37882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYoO6-0008Dv-LY for 54601@debbugs.gnu.org; Mon, 28 Mar 2022 08:22:23 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by xavier.telenet-ops.be with bizsmtp id BoNL2700t4UW6Th01oNLxX; Mon, 28 Mar 2022 14:22:21 +0200 Message-ID: <9c5cf079a86c74516dccc7260f9a2c8b0bb95783.camel@telenet.be> From: Maxime Devos Date: Mon, 28 Mar 2022 14:22:20 +0200 In-Reply-To: References: <43942589dee617ec9eb65bc9bb12d27407a50a3a.camel@telenet.be> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1648470141; bh=vngD/SPz1HrBC3NegYKG9233IxwiG/5rmvkj/nxNBmk=; h=Subject:From:Reply-To:To:Cc:Date:In-Reply-To:References; b=DNqXh/D3VvJ4xfAYmaz2oFi91vcjDASca8nkhd3m3T83dvKWRXb9NBoKFcuYJHbWn zT82KbNWaDSlYOGOBrW9w8rtZqGGFZUviiX3JFuy91GBEyOnYH38UGJBhJU2CDx1Ai TIOQEej8pPc6FmXSFX8ml+19ZDah9B+LjOyjc4nrVKFY2KfVNxKnj7R9UWsNcJnOvf F71SFd/tSJFmDfuVw1XYPBqA2gDAx5np4BvtIc8MEijilpTTHt2t6FiT/VL8mf0koh zILlda1UIy7o7U4MvWx+/pTC6evUsZtmrOVgCS/FMpeUlgms/D2OAxkkdz1o2QfMB9 omaIL1nQdXQHw== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) kiasoc5@tutanota.com schreef op zo 27-03-2022 om 22:49 [+0200]: > +    (synopsis "Compress Flask application responses and static > files.") > +    (description > +     "Compress Flask application responses and static files with > gzip, deflate and brotli without > +a server (like Nginx). Flask-Compress both adds the various headers > required for a compressed response > +and compresses the response data. Internally, every time a request > is made the extension will check > +if it matches one of the compressible MIME types and whether the > client and the server use some common > +compression algorithm, and will automatically attach the appropriate > headers.") The new descriptions look nice. Greetings, Maxime. From unknown Sat Jun 14 04:55:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: kiasoc5@tutanota.com Subject: bug#54601: closed (Add python-flask-compress and python-flask-seasurf) Message-ID: References: <87leforolt.fsf@elephly.net> X-Gnu-PR-Message: they-closed 54601 X-Gnu-PR-Package: guix-patches Reply-To: 54601@debbugs.gnu.org Date: Mon, 10 Jul 2023 11:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1688988662-29409-1" This is a multi-part message in MIME format... ------------=_1688988662-29409-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 54601@debbugs.gnu.org. --=20 54601: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54601 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1688988662-29409-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 54601-done) by debbugs.gnu.org; 10 Jul 2023 11:30:04 +0000 Received: from localhost ([127.0.0.1]:47843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIp5g-0005Bd-6l for submit@debbugs.gnu.org; Mon, 10 Jul 2023 07:30:04 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIp5c-00054i-Ac for 54601-done@debbugs.gnu.org; Mon, 10 Jul 2023 07:30:02 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1688988595; cv=none; d=zohomail.com; s=zohoarc; b=BeApYtdh0uU2b/rU/S9wQmn01gQMb6ip96TQs7DyRCgPMEUn9q20mQ6Y/bqfweBXL5XsW1b4ZrExU89lZn2nyXcDDJFRwGD/0hpITva/Xau+B3SPKd6zWXrD+DE/ztcbKb23ZTFzkvFdwN52k8cYINzeZ+kZT52mr9GC5i7PTE4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688988595; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=yweC0u0xrOcVJT7ekjJi/yLImAq+ABOkCd+utxgELZI=; b=Twk1UmbDpspG5UzOEXeNsj5ChFtIbiRIBm30o1Lc+pnXqxdZK+hcRFKFOEOcXnxZQ+LGTW9RzKcH5U98FPnXmgv8dSPPvVGo2Fu+JnazWwNjQoC2p+OWqP3QWbV2vQu1gm7vBayXsaTD/Am5VjGr0yUm6grTnjJbqXqFDWwoMbg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1688988595; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=yweC0u0xrOcVJT7ekjJi/yLImAq+ABOkCd+utxgELZI=; b=cy97W18UB2VK82HKHIlTB3+QXTFSy61XY9wPuv1XZEnMXDjMCLCq8JbQbnsQB6d9 XZOjK2oPTDBXCgpRlg5Udb0TE28WNrguLt0ouuWVJnVB+mtSFWBhCACoKzXXQNd2XJJ b5ynJ2wG+eZk6ECuL0V7vzjw0b/CyjGNPeCGnA2k= Received: from localhost (92-108-142-46.pool.kielnet.net [46.142.108.92]) by mx.zohomail.com with SMTPS id 1688988593741755.102979864457; Mon, 10 Jul 2023 04:29:53 -0700 (PDT) User-agent: mu4e 1.10.3; emacs 28.2 From: Ricardo Wurmus To: 54601-done@debbugs.gnu.org Subject: Add python-flask-compress and python-flask-seasurf Date: Mon, 10 Jul 2023 13:29:16 +0200 Message-ID: <87leforolt.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 54601-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 ------------=_1688988662-29409-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Mar 2022 19:43:14 +0000 Received: from localhost ([127.0.0.1]:56604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYYnB-0001au-N8 for submit@debbugs.gnu.org; Sun, 27 Mar 2022 15:43:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:49422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYYnA-0001an-2l for submit@debbugs.gnu.org; Sun, 27 Mar 2022 15:43:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYYn9-0005Ms-Se for guix-patches@gnu.org; Sun, 27 Mar 2022 15:43:11 -0400 Received: from w1.tutanota.de ([81.3.6.162]:33618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYYn8-0005HC-5l for guix-patches@gnu.org; Sun, 27 Mar 2022 15:43:11 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id E972BFA00BA for ; Sun, 27 Mar 2022 19:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1648410188; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=S3pHrnx6b/5bghSA4k3Led8as70cBS0NYKmAl7GsC/c=; b=H4FiKjHYs08NAmq6NcwryFoubFKdbFk+eBy3PTB5M70LXVSpoY1Q6ccmJOmgrDvz ajb4GRhV+iAFxQ4qSZEHz2zx4xvLwYTP0UbnqCKDP32n1StQtGcPXwsebLZ+8BHYKqr xfTivzKbvAvGyarcSNaWPgSpIR64w/Lo+0TImCawWZ9hXR0KfL3iivBvRSUdH3f+sLt MnRjyMOn0PAum6d9pt4iwNrSuOxXSGXVJgDA2AVArJjcAvTr4Bbv4cvk3bifG43Krhr /U9EnBtFwh7RqY0A4LFF91DdpM9aZwNGE7gJ25ew7S6X9mO29fCAPFEMaouP+5UUyPn gwr5+qCfEQ== Date: Sun, 27 Mar 2022 21:43:08 +0200 (CEST) From: kiasoc5@tutanota.com To: Guix Patches Message-ID: Subject: Add python-flask-compress and python-flask-seasurf MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_340991_346091381.1648410188945" Received-SPF: pass client-ip=81.3.6.162; envelope-from=kiasoc5@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) ------=_Part_340991_346091381.1648410188945 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ------=_Part_340991_346091381.1648410188945 Content-Type: text/x-patch; charset=us-ascii; name=0001-gnu-Add-python-flask-compress.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-Add-python-flask-compress.patch >From 0d09e7fb5d68f30995663d9ff9621a234678c546 Mon Sep 17 00:00:00 2001 From: kiasoc5 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 ------=_Part_340991_346091381.1648410188945 Content-Type: text/x-patch; charset=us-ascii; name=0002-gnu-Add-python-flask-seasurf.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0002-gnu-Add-python-flask-seasurf.patch >From 7664077a8444286755cf82168d7dc2ad7efb06c1 Mon Sep 17 00:00:00 2001 From: kiasoc5 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 ------=_Part_340991_346091381.1648410188945-- ------------=_1688988662-29409-1--