From 5361a369ed1b9147f4d41b85672bd37c9a6a4071 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Fri, 9 Dec 2022 18:24:21 +0100 Subject: [PATCH 12/19] gnu: Add python-flask-login-0.5. * gnu/packages/python-web.scm (python-flask-login-0.5): New variable. diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4136645d8d..cde9aa41ee 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3936,6 +3936,46 @@ (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_hashable" + " 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.38.1