From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YJjpEyy1J2HLbAEAgWs5BA (envelope-from ) for ; Thu, 26 Aug 2021 17:37:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eOeLDyy1J2FEEgAAB5/wlQ (envelope-from ) for ; Thu, 26 Aug 2021 15:37:16 +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 19ACE202FC for ; Thu, 26 Aug 2021 17:37:16 +0200 (CEST) Received: from localhost ([::1]:40802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJHRL-0005BV-2U for larch@yhetil.org; Thu, 26 Aug 2021 11:37:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJHR8-00050c-LE for guix-patches@gnu.org; Thu, 26 Aug 2021 11:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJHR8-0008BS-DZ for guix-patches@gnu.org; Thu, 26 Aug 2021 11:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJHR8-00026h-BI for guix-patches@gnu.org; Thu, 26 Aug 2021 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50213] [PATCH 17/19] gnu: python-flask: Use add-installed-pythonpath in the check phase. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Aug 2021 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50213 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50213@debbugs.gnu.org Cc: jgart Received: via spool by 50213-submit@debbugs.gnu.org id=B50213.16299922028062 (code B ref 50213); Thu, 26 Aug 2021 15:37:02 +0000 Received: (at 50213) by debbugs.gnu.org; 26 Aug 2021 15:36:42 +0000 Received: from localhost ([127.0.0.1]:50162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJHQk-00025p-Ks for submit@debbugs.gnu.org; Thu, 26 Aug 2021 11:36:42 -0400 Received: from mx1.dismail.de ([78.46.223.134]:5316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJH77-0001TM-Cw for 50213@debbugs.gnu.org; Thu, 26 Aug 2021 11:16:21 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id a2807915 for <50213@debbugs.gnu.org>; Thu, 26 Aug 2021 17:16:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20190914; bh=xSanWHOxkgdwkfGxvf0Tq 0KaESezxtzGMXf6DSXbeaQ=; b=sAnuI0XaaQAezyYDiBxO28zym9f7Ktt+E2JVV R0p3wUGaOr0UAVTY1ZOGUPq5NZZ4KVl3TRHoqf5eSqIwmBkQZ/RP/DGKW5WSzYub jgP0Ie8ZxMJ5Nwj5S1pDLUurFjsZ0lBV9ctrXzc8Aa7eIJA5qoyweSVPoInSSE9n l/Grt1joB74oCNLxgVDxmtciWGNDvCC+hE44MChXIgeSeutU9MhRASY67gV1h1kF KwkGfVygrQxt9oICxNHRCD73RjL1pm6wZrZ3OZ6vrIgZZERKdoucVzjzNcQ5TAUo teievnnVHH/piEFchfd2F7VCydiExbI0VANNZx5nro1F5Ad8Q== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id f0891c65 for <50213@debbugs.gnu.org>; Thu, 26 Aug 2021 17:16:19 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id efd18807 for <50213@debbugs.gnu.org>; Thu, 26 Aug 2021 17:16:18 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 94ba12cb (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 26 Aug 2021 17:16:17 +0200 (CEST) Date: Thu, 26 Aug 2021 11:15:51 -0400 Message-Id: <20210826151553.10127-17-jgart@dismail.de> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210826151553.10127-1-jgart@dismail.de> References: <20210826151553.10127-1-jgart@dismail.de> 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" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches From: jgart via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629992236; h=from:from:sender:sender:reply-to: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=LextK2R3OLbOneSem+5UzGbcM4oEhlVGXLDpcMfS+VU=; b=jobvAAIY1xTc3os3DylkGcmyOpLzQLttA3WvPWdUt+V6W8vXJhHgo3Cr8fpUV7dLromjeA crMyRo+YCdc/PZK15TTW4BvNn/pNH7k+XaGpMtzID8vrORKR34hDl9y3ZzFAm1QtN3wOyj +4lazaToLseZDbu9Iihbxn8UNRF+p8eHnJ6SgBJRseuyjroZfmc905X0CX+dfbSyQh4Xsi TVBVS8G7XtI4K+EH7DTnOF8s/NyzEN3WhW7YKU+jb3/29WM9juursggX7BjJh1JpK42ygX PChm/Vi3v+vnMvjRfL1IkeFU5DXwDoeFUjkTrnIMbODmD0f5tas+t6Qv87LNlg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629992236; a=rsa-sha256; cv=none; b=Pn97Ouc9CYGOtjcSfx0R6potUUKLJ2+hX+8aNKz+Xhkels5TvxlYocNLB+d5028u+0YkIy 3kU29rCKHJJISYMzJ4Xs1XYc0ajuJZ0CWVfJSBVWQyZMB/lqzhlKcUdJaxIkpo6xgAfaxa dyybhTpWaSlYQBU5ewKAtxQ9ytyvJH5iA++FotRcw29v1aFvJXBYDwIr+mOkxoiRpgWKW/ WJpfBpRAyOATWQXiXlu7HPlqGtaheNmQvb6JS11AjXWdQXoX+PneS7Pfpz8SYJxmm31pBc KQNK8tnOybxcJJf6jrcsL1I1IqCFPEhwRs7EwU4ibZwXBfcawUBp8h2JaoiVDg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=sAnuI0Xa; dmarc=pass (policy=none) header.from=gnu.org; 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: 1.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=sAnuI0Xa; dmarc=pass (policy=none) header.from=gnu.org; 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: 19ACE202FC X-Spam-Score: 1.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: P2FK2r96dJph * gnu/packages/python-web.scm (python-flask)[arguments]: Use add-installed-pythonpath and tests? predicate in the check phase. --- gnu/packages/python-web.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6784b5038f..561c788dde 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2987,10 +2987,10 @@ minimum of WSGI.") '(#: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 "pytest" "-vv"))))))) (native-inputs `(("python-pytest" ,python-pytest))) (propagated-inputs -- 2.33.0