[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH v4 10/14] gnu: Add python-flask-login-0.5.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH v4 10/14] gnu: Add python-flask-login-0.5. |
Date: |
Sun, 29 May 2022 18:27:42 +0000 |
* gnu/packages/python-web.scm (python-flask-login-0.5): New variable.
---
gnu/packages/python-web.scm | 39 +++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b4a2bc365b..294060c3f6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3875,6 +3875,45 @@ (define-public python-flask-login
users' sessions over extended periods of time.")
(license license:expat)))
+(define-public python-flask-login-0.5
+ (package
+ (inherit python-flask-login)
+ (name "python-flask-login")
+ (version "0.5.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/maxcountryman/flask-login")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "-c" "/dev/null" "-k"
+ ;; All the tests below fail with an AssertionError
+ ;; because of a missing address, e.g.:
+ ;; E - /login?next=%2Fsecret
+ ;; E + http://foo.com/login?next=%2Fsecret
+ (string-append
+ "not test_redirects_to_refresh_view"
+ " and not test_refresh_with_next_in_session"
+ " and not test_set_login_view_without_blueprints"
+ " and not test_unauthorized_redirects_to_login_view"
+ " and not test_unauthorized_uses_blueprint_login_view"
+ " and not test_unauthorized_with_next_in_session"
+ " and not
test_unauthorized_with_next_in_strong_session"
+ " and not
test_unauthorized_ignores_host_from_x_forwarded_for_header"
+ " and not
test_unauthorized_uses_host_from_config_when_available"
+ " and not test_unauthorized_uses_host_from_next_url"
+ " and not
test_unauthorized_uses_host_from_x_forwarded_for_header"))))))))))
+
(define-public python-oauth2client
(package
(name "python-oauth2client")
--
2.34.1
- [bug#51314] [PATCH v4 05/14] gnu: Add python-zeroconf-0.33., (continued)
- [bug#51314] [PATCH v4 06/14] gnu: Add python-cachelib-0.2., Vinicius Monego, 2022/05/29
- [bug#51314] [PATCH v4 07/14] gnu: Add python-wrapt-1.13., Vinicius Monego, 2022/05/29
- [bug#51314] [PATCH v4 08/14] gnu: Add python-watchdog-1., Vinicius Monego, 2022/05/29
- [bug#51314] [PATCH v4 09/14] gnu: Add python-sarge-0.1.6., Vinicius Monego, 2022/05/29
- [bug#51314] [PATCH v4 11/14] gnu: Add octoprint-pisupport., Vinicius Monego, 2022/05/29
- [bug#51314] [PATCH v4 12/14] gnu: Add octoprint-firmwarecheck., Vinicius Monego, 2022/05/29
- [bug#51314] [PATCH v4 10/14] gnu: Add python-flask-login-0.5.,
Vinicius Monego <=
- [bug#51314] [PATCH v4 13/14] gnu: Add octoprint-filecheck., Vinicius Monego, 2022/05/29
- [bug#51314] [PATCH v4 14/14] gnu: Add octoprint., Vinicius Monego, 2022/05/29