>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