[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/12: gnu: Add python-flask-jwt.
From: |
guix-commits |
Subject: |
10/12: gnu: Add python-flask-jwt. |
Date: |
Mon, 12 Dec 2022 09:01:21 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 49ec1fbc8f0872241bfff1827bd9b47455b0980c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun Dec 11 15:01:19 2022 +0100
gnu: Add python-flask-jwt.
* gnu/packages/python-web.scm (python-flask-jwt): New variable.
---
gnu/packages/python-web.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 72e20a130f..7543e05f47 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3889,6 +3889,38 @@ SlimIt also provides a library that includes a
JavaScript parser, lexer,
pretty printer and a tree visitor.")
(license license:expat)))
+(define-public python-flask-jwt
+ (package
+ (name "python-flask-jwt")
+ (version "0.3.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "Flask-JWT" version))
+ (sha256
+ (base32
+ "1bfh7cr0sf65rn4h1q67472y6ml9s8c4k0xxfhrwvwg0plpngh29"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'compatibility
+ (lambda _
+ (substitute* "setup.cfg"
+ (("\\[pytest\\]") "[tool:pytest]"))
+ (substitute* "requirements.txt"
+ (("PyJWT>=1.4.0,<1.5.0") "PyJWT>=2.0.0"))
+ (substitute* '("tests/test_jwt.py"
+ "flask_jwt/__init__.py")
+ (("access_token.decode\\('utf-8'\\)") "access_token")))))))
+ (propagated-inputs (list python-flask python-pyjwt))
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/mattupstate/flask-jwt")
+ (synopsis "JWT token authentication for Flask apps")
+ (description "This package implements JWT token authentication for Flask
+apps.")
+ (license license:expat)))
+
(define-public python-flask-restful
(package
(name "python-flask-restful")
- branch master updated (ad4bb682d3 -> 94e9651241), guix-commits, 2022/12/12
- 08/12: gnu: Add python-fit-nbinom., guix-commits, 2022/12/12
- 11/12: gnu: Add python-pygtrie., guix-commits, 2022/12/12
- 10/12: gnu: Add python-flask-jwt.,
guix-commits <=
- 09/12: gnu: Add python-apispec-webframeworks., guix-commits, 2022/12/12
- 04/12: gnu: Add python-cleanlab., guix-commits, 2022/12/12
- 07/12: gnu: Add python-py4j., guix-commits, 2022/12/12
- 01/12: gnu: u-boot: Update to 2022.10., guix-commits, 2022/12/12
- 12/12: gnu: Add python-pomegranate., guix-commits, 2022/12/12
- 05/12: gnu: Add python-cleanlab-1., guix-commits, 2022/12/12
- 06/12: gnu: Add python-imbalanced-learn., guix-commits, 2022/12/12
- 02/12: gnu: u-boot: Use plain list of inputs., guix-commits, 2022/12/12
- 03/12: gnu: bioperl-minimal: Remove trailing #T from build phase., guix-commits, 2022/12/12