[bug#51314,v4,10/14] gnu: Add python-flask-login-0.5.
Commit Message
* gnu/packages/python-web.scm (python-flask-login-0.5): New variable.
---
gnu/packages/python-web.scm | 39 +++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
@@ -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")