guix-patches
[Top][All Lists]
Advanced

[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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]