From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8NASBN/mcGHH0gAAgWs5BA (envelope-from ) for ; Thu, 21 Oct 2021 06:04:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eK1dO97mcGHhNAAAB5/wlQ (envelope-from ) for ; Thu, 21 Oct 2021 04:04:46 +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 CFB552DCFF for ; Thu, 21 Oct 2021 06:04:46 +0200 (CEST) Received: from localhost ([::1]:41054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPJt-0003wp-Th for larch@yhetil.org; Thu, 21 Oct 2021 00:04:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdPJC-0003IR-Og for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdPJC-0000Je-Fu for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdPJC-0005de-CA for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH 08/29] gnu: python-flask: Respect #:tests?. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Oct 2021 04: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.163478898921438 (code B ref 51314); Thu, 21 Oct 2021 04:04:02 +0000 Received: (at 51314) by debbugs.gnu.org; 21 Oct 2021 04:03:09 +0000 Received: from localhost ([127.0.0.1]:55937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIL-0005Zd-Dx for submit@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIK-0005Z2-En for 51314@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:08 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4733724010A for <51314@debbugs.gnu.org>; Thu, 21 Oct 2021 06:03:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634788982; bh=C0zQ5W8nV5xwQAZKbg+wb3JGkESAKb7SbfNZm1XHnzM=; h=From:To:Cc:Subject:Date:From; b=rZK+SjmLuACFFWE+jG68iLU21kAcnv5GlZ1lnqLpNfxPZLKwkD7/6Dke0P8A/qYFq c1oEhJh10Fiyin41f26JU1bQwG1kOHgC7k0abw0WKgeXmF6VzHmZ/L161r977Jv9Zq WFT+ce2+LMhpNl2bwixq0QqdX/RPsww+Q15H5vXF94vSqnJpZaehKBPmZONXBc/Euz AdM+Nj5cMsXG9NbRL3M+0KKLhhMP/Q9EjZ7kQfsmoVp+8916xotba2SsR/P4VbL80A csSQkrZHZBL6L0qhA7+c1kLFAPSTGxnSHCoNpRrMlfcW6QvzQ7lHiiw/byVcsabY9c QTWHqHVzob1FQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HZYjd2b8gz6tm6; Thu, 21 Oct 2021 06:03:01 +0200 (CEST) From: Vinicius Monego Date: Thu, 21 Oct 2021 04:01:39 +0000 Message-Id: <20211021040200.241873-4-monego@posteo.net> In-Reply-To: <20211021040200.241873-1-monego@posteo.net> References: <20211021040200.241873-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=1634789086; 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=B+nnpDbJNDXIrO3jQaVsVwNTEbuE6imlhkx0Lsv6ELU=; b=rt09dx5NisiuBMrQR8tg2NthCu2Tx6tGky4wCi6WHJNUQYv+hwwPcWMif8Sd10RQ8ZSr20 /DZ0eB6oDWo7fuvIM4CDuQ8kxKIhlz90bF0Yq9DZMOMzFox+FCytF9o1/ykWZfmtAHw8AU IWJYcm918GmLymFxeE06n1vo59yVoTRA2dNERuKwrkvwrjcV9vf14rLacA28GdAZCXeMrI jevIvYvFaQibzBlV63q5Ysaf6xbsv8OVKcG68doi4RPGBp6edWJIOM/BDqdkuS5PzFrda2 q6c2+sS31U3wtonZFb2vU45ru/wGSROIXqStWu2fb0nDzU+S/IAtNqsmutDODw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634789086; a=rsa-sha256; cv=none; b=mmi+FO7d9RIICua6vFc8vYXk92TuYypVt4UxiBSZh8W/ObQL3Gk8h+psgBoByuKnqrn3Jq 0MrGQKNZDaTCZBRlZMYiVmUxOKv0NmUXTniOFKTMO+AjLTbgtXnOI/iTMbMbe515fgX0Nq a+xw/Qa2O8WbWgjm1XBBrhl6yNex/Yxd7o5YetZ1kYJ56NkBgrKrqRofrFRSkV5EuanD+6 dDHK5h+RHJiwsV4FKMxqHQyA5m00iBzKz86mw22wKsLISEuOyD5jrf3Uj5+HeM8w25Sb+p 6rSjA1xw9I9EgatfpZ/kEsIq0Pq66igmux5cFpOnjZf+tOyBDcaJhXZYcc0WVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=rZK+SjmL; 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.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=rZK+SjmL; 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: CFB552DCFF X-Spam-Score: 3.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: xcv948Z4bz1b * gnu/packages/python-web.scm (python-flask)[arguments]<#:phases>: Respect #:tests? in the custom 'check phase and simplify it. --- 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 67128d1b18..8dd3345daf 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2981,13 +2981,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