From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CDsWOE4akGFxPAAAgWs5BA (envelope-from ) for ; Sat, 13 Nov 2021 21:04:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EGqiM04akGFzbAAAbx9fmQ (envelope-from ) for ; Sat, 13 Nov 2021 20:04:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AD0E527AF9 for ; Sat, 13 Nov 2021 21:04:30 +0100 (CET) Received: from localhost ([::1]:38234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlzGH-0004tF-Ru for larch@yhetil.org; Sat, 13 Nov 2021 15:04:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlzFq-0004qA-Rs for guix-patches@gnu.org; Sat, 13 Nov 2021 15:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlzFq-00080f-JD for guix-patches@gnu.org; Sat, 13 Nov 2021 15:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlzFq-0001Jk-FG for guix-patches@gnu.org; Sat, 13 Nov 2021 15:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v2 04/24] gnu: python-flask: Respect #:tests?. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Nov 2021 20:04:02 +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.16368337874860 (code B ref 51314); Sat, 13 Nov 2021 20:04:02 +0000 Received: (at 51314) by debbugs.gnu.org; 13 Nov 2021 20:03:07 +0000 Received: from localhost ([127.0.0.1]:48158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlzEw-0001GI-QE for submit@debbugs.gnu.org; Sat, 13 Nov 2021 15:03:07 -0500 Received: from mout01.posteo.de ([185.67.36.65]:44859) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlzEv-0001FN-FO for 51314@debbugs.gnu.org; Sat, 13 Nov 2021 15:03:05 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E070D240026 for <51314@debbugs.gnu.org>; Sat, 13 Nov 2021 21:02:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636833779; bh=c+4VzxWWD5c/nnhMypmi/UolJ5dTH+iYRZbMswj5lz4=; h=From:To:Cc:Subject:Date:From; b=YtqwR2P3F55IdcPPyVp407nlkLxBzWJNHtQXGhxqxz2wBShfdGzOBaOgElVav77NA bT9wClLz6/rkYw8DsgiKdWwRcJzs8jIzaTc0iBbreOvSaMxUGDL2L9OPPglbiZc0lN bbjlbPVRJQdYqoCV+oWjERidWO6hbv/+7XXe0DHnaiiSLFhMZdTp1akov2ahlb6pnc XrJ6eO7kCHXlNTw3qCvWMmYK+AiAweYo8pwECj3DpFMc4avUbAxxWsC+hrRRj3CGaD +2Kwv1l1ZVqXxq4Wz/wZtr6ElrCBAMOJA0NLhe6X2g1Zs4y9eqV2BUErZVBom0zOve ml6R6+aH0CUuQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Hs5wg0sqFz9rxK; Sat, 13 Nov 2021 21:02:58 +0100 (CET) From: Vinicius Monego Date: Sat, 13 Nov 2021 20:02:10 +0000 Message-Id: <20211113200230.192559-4-monego@posteo.net> In-Reply-To: <20211113200230.192559-1-monego@posteo.net> References: <20211113200230.192559-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636833870; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=i/MwgvF2oFDjm/OmLQt8WU7I7Sb1VlWYVUwTraRtkOs=; b=saq5jX214gubefarI6FbhxGAIJlpjpRT52PMhPYitN1kDcWXX2fP1QD+6whUec+AAFSwBq B8RZQ9CVtaYwVUplpQDk8opvVMQmIaKk4IdEWQSgP8VChA0rSt2BreK0Y21e6xu7bzE/zW DT9LoVpUe8V8B2aUxVlwf680yqx6kYbQU3hApJAH3dv7MEjfpy1wOFZtqJwtdL3wHCIl8L w2JF35cUNsYaEz2Kb59LQwk83ElaYsj+dsTr8vkxrMyjI8VlSYk09gZPnRu2Dkod+nvTxh KPDo0ebQPJ0nENc5XuzXeX/mXLA/NXy6Zt2uEQVws3nhTFmj0rruO5PkvwZWNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636833870; a=rsa-sha256; cv=none; b=XdNhEdtrdcp5tMF4QsmH2OOc+C6vKl92vDScAfdDjSniIZpYEcihi2T2w30wjpnKkSUKtX wP7B6HoY1EorVZxkWNt7XFK4zNzA/aeaKIjyy2vUhwdsKnxHFNWME/p3/4RABNJRfDQ73v mzfEcLFIgL2djuN7SPdkPiXYygHMlmp/SLm3qgoziZEob2VjgydREzG76LfkA51nDypB0N qw0byx0TvvGNp75+2jSX+XNiJx2bgX4kjVBzBhsPHpmw0VQYsYdSoxSyAgmAzb3DSr/cqj 2lc/vh3gDC7eGghjID+39ezlLMxve2/GnErD7cwu9UDVtvxd/F/I5fExYi9J/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YtqwR2P3; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YtqwR2P3; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: AD0E527AF9 X-Spam-Score: 3.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5Q9bigdphz1c * gnu/packages/python-web.scm (python-flask)[arguments]<#:phases>: Respect #:tests? and simplify the test command in the custom 'check phase. --- gnu/packages/python-web.scm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 0beaa78d0e..8dd73c003f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3006,13 +3006,13 @@ minimum of WSGI.") "15ni4xlm57a15f5hipp8w0c9zba20179bvfns2392fiq1lcbdghg")))) (build-system python-build-system) (arguments - '(#:phases + `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (setenv "PYTHONPATH" (string-append "./build/lib:" - (getenv "PYTHONPATH"))) - (invoke "pytest" "-vv" "tests")))))) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest"))))))) (native-inputs `(("python-pytest" ,python-pytest))) (propagated-inputs -- 2.30.2