From patchwork Fri Apr 22 12:41:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 38750 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 2578727BBEA; Fri, 22 Apr 2022 14:00:06 +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 E22CE27BBE9 for ; Fri, 22 Apr 2022 14:00:05 +0100 (BST) Received: from localhost ([::1]:38728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhstI-00029E-J6 for patchwork@mira.cbaines.net; Fri, 22 Apr 2022 09:00:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhsbs-0007l4-Da for guix-patches@gnu.org; Fri, 22 Apr 2022 08:42:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhsbs-0005q7-36 for guix-patches@gnu.org; Fri, 22 Apr 2022 08:42:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhsbs-0004um-1S for guix-patches@gnu.org; Fri, 22 Apr 2022 08:42:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v2 3/6] gnu: python-meshio: Honor #:tests? flag. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Apr 2022 12:42:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55060 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55060@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 55060-submit@debbugs.gnu.org id=B55060.165063131318828 (code B ref 55060); Fri, 22 Apr 2022 12:42:03 +0000 Received: (at 55060) by debbugs.gnu.org; 22 Apr 2022 12:41:53 +0000 Received: from localhost ([127.0.0.1]:51902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhsbh-0004tb-28 for submit@debbugs.gnu.org; Fri, 22 Apr 2022 08:41:53 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]:45287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhsbf-0004t9-Ed for 55060@debbugs.gnu.org; Fri, 22 Apr 2022 08:41:51 -0400 Date: Fri, 22 Apr 2022 12:41:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1650631305; bh=jKvbXz3pLQGuzomA0RN9aY4oCnDRu+v4J1unZ10Gxss=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=Vj697fdHiovpxLiO0JWHFQzCjGSPaJcR8R3z5/sEr4W3DcnSWpFpsnopH2T6CUYu6 i+w/xCz4uvfKcbVqB5JnfVzXeBiPQW6IALnxdnQxWhqukGF09Hnm5yXZZ9h3xrUrrh fldtcoSuwQ0/RH2iM/jgDugVzshHvR1VTGExdtfadpB8+X/kNdnnqdsedHd2sPw/IF X85AFhuxWbiIQJDYUvSaKAkgburjb22aGVpTN+60rIa4rtB14yIIgkt3Vsy/u9lC8v zP0O28a4ys7xz1RClZKV4aiecG6Tex1p772v5SJOdbqeqs85rr8GmNk2DhvHuMA02J 38ShWIWP9bGtg== From: "Paul A. Patience" Message-ID: <20220422124118.66783-4-paul@apatience.com> In-Reply-To: <20220422124118.66783-1-paul@apatience.com> References: <20220422124118.66783-1-paul@apatience.com> Feedback-ID: 19227857:user:proton 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/simulation.scm (python-meshio)[arguments]: Adjust custom 'check' phase to honor the #:tests? flag. --- gnu/packages/simulation.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.35.1 diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index fa246f9fb7..17d0a1352c 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -799,9 +799,10 @@ (define-public python-meshio `(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key outputs inputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "python" "-m" "pytest" "-v" "tests")))))) + (lambda* (#:key tests? outputs inputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "-v" "tests"))))))) (home-page "https://github.com/nschloe/meshio") (synopsis "I/O for mesh files") (description "There are various file formats available for