From patchwork Sun May 29 18:27:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 39674 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4C26B27BBEA; Sun, 29 May 2022 19:32:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 085E027BBE9 for ; Sun, 29 May 2022 19:32:41 +0100 (BST) Received: from localhost ([::1]:45180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvNiS-0002de-5u for patchwork@mira.cbaines.net; Sun, 29 May 2022 14:32:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvNfx-0007ew-D3 for guix-patches@gnu.org; Sun, 29 May 2022 14:30:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvNfx-0000U0-26 for guix-patches@gnu.org; Sun, 29 May 2022 14:30:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvNfw-0003GA-VU for guix-patches@gnu.org; Sun, 29 May 2022 14:30:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v4 10/14] gnu: Add python-flask-login-0.5. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 May 2022 18:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.165384896812376 (code B ref 51314); Sun, 29 May 2022 18:30:04 +0000 Received: (at 51314) by debbugs.gnu.org; 29 May 2022 18:29:28 +0000 Received: from localhost ([127.0.0.1]:41907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvNfM-0003DX-1M for submit@debbugs.gnu.org; Sun, 29 May 2022 14:29:28 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvNfF-0003Cn-D9 for 51314@debbugs.gnu.org; Sun, 29 May 2022 14:29:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CD82924002C for <51314@debbugs.gnu.org>; Sun, 29 May 2022 20:29:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1653848955; bh=33rjVQm7pi6nNcG3UaWJakiTMJfo6Wj37JFXiaO2ykY=; h=From:To:Cc:Subject:Date:From; b=hdNMcmbM1gL2ZSNt/STq3NRV9QqDkJuBEoKBNv2ZiTnniRha421BtUeGFxJWMQw/Q LBl8B5z50SG7S7qI1Lgo15I9PpSYMi5i0JtGDl97fEuNIa6GrN6uAX9d8Ls95fI5Er mTF5cEdo+hFmmGvrWsFp5pkWGhJiHm8igWexE7IshetUv/HuV7O10a3Ah09CD0YNyN GAH7M20Z1I0lYe9cM/W1+HFta0Xsag1CSUTf5grblb+EKqeCnduZDDPWButMIEZ2o+ e2CIUBGrG+m/+QfhfZZLyp70uIyzCgQrjlHQVnA/+K5/AkKuKw02+BprranugQZ8ul i1iKJqbhwN4ew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LB6Wb0GGVz9rxd; Sun, 29 May 2022 20:29:14 +0200 (CEST) From: Vinicius Monego Date: Sun, 29 May 2022 18:27:42 +0000 Message-Id: <20220529182746.314668-11-monego@posteo.net> In-Reply-To: <20220529182746.314668-1-monego@posteo.net> References: <20220529182746.314668-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")