From patchwork Mon May 2 21:16:44 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: 39077 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 1AAAA27BBEA; Mon, 2 May 2022 22:17:11 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 E1B1D27BBE9 for ; Mon, 2 May 2022 22:17:10 +0100 (BST) Received: from localhost ([::1]:34698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldPq-00054T-2F for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:17:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldPi-000545-G1 for guix-patches@gnu.org; Mon, 02 May 2022 17:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldPi-0008IK-7O for guix-patches@gnu.org; Mon, 02 May 2022 17:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldPi-0006O1-3e for guix-patches@gnu.org; Mon, 02 May 2022 17:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 1/8] gnu: python-meshio: Remove input labels. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:17:02 +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.165152622024529 (code B ref 55060); Mon, 02 May 2022 21:17:02 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:00 +0000 Received: from localhost ([127.0.0.1]:38151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldPg-0006NY-F5 for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:00 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]:63056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldPe-0006NK-VM for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:16:59 -0400 Date: Mon, 02 May 2022 21:16:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526213; bh=q5PoJ+l16OSw9b91F7s7cWcXxOLQIMCVFRWa5eO/cx0=; 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=WE1eiUAa3FSFR2b1eTGkgO0LRebPcNlHqsx4AOB2UDGmpBZc3z5EsGEQlZHmovenC 6Xbf7bHpO1vPFR7XusZhj+fHBNbZxvHqtgXLQ4xNirG4PINcej8NkqzYVv5b9vSXfa MyJ88ZBy5WgBpTKoaPMtkzhZouQElqwDXju54ofjw/n2E4UMYqKmwZRQwy70viWTwB sOKtaE+OjpsbTl4YYeVH0s7rK5JKteOR+TA7Nyg2v5BzJp/yYArZAm1vpQO7UKUNJ0 5SVAiuNTs5MwsCYMlFgIRYnXt/rjF/5HL/YP4m1OW6NqJG0qu+LrVuRT+wn993A0Mi GxFVe6U6NNWAQ== From: "Paul A. Patience" Message-ID: <20220502211624.689372-2-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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)[inputs, native-inputs, propagated-inputs]: Remove labels. --- gnu/packages/simulation.scm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.36.0 diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 3f2d8e136d..c8309761d2 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -789,13 +789,13 @@ (define-public python-meshio #t)))) (build-system python-build-system) (inputs - `(("h5py" ,python-h5py) - ("netcdf4" ,python-netcdf4))) + (list python-h5py + python-netcdf4)) (native-inputs - `(("pytest" ,python-pytest))) + (list python-pytest)) (propagated-inputs - `(("importlib-metadata" ,python-importlib-metadata) - ("numpy" ,python-numpy))) + (list python-importlib-metadata + python-numpy)) (arguments `(#:phases (modify-phases %standard-phases From patchwork Mon May 2 21:16:49 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: 39079 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 7A12B27BBEA; Mon, 2 May 2022 22:18:13 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 3FCCB27BBE9 for ; Mon, 2 May 2022 22:18:13 +0100 (BST) Received: from localhost ([::1]:35170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldQq-0005Q9-ET for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:18:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQg-0005PF-RC for guix-patches@gnu.org; Mon, 02 May 2022 17:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQg-0008NJ-Ip for guix-patches@gnu.org; Mon, 02 May 2022 17:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQg-0006Qp-CF for guix-patches@gnu.org; Mon, 02 May 2022 17:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 2/8] gnu: python-meshio: Remove trailing booleans. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18:02 +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.165152622624584 (code B ref 55060); Mon, 02 May 2022 21:18:02 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:06 +0000 Received: from localhost ([127.0.0.1]:38157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldPm-0006OS-LX for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:06 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:48383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldPl-0006NX-4P for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:05 -0400 Date: Mon, 02 May 2022 21:16:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526219; bh=DSQOvFr9Ykxt2LpIxGa4ygMzkFuyFPE9JgN47IwOSi8=; 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=isK9HYW1M8G6cfmTwpwVaVCUVmfjyACbVi2GOJyHzZ0bQNmqepRa4nFLCeRjCQrWT YCQVytdzTSDrLjl+QOo9Gq0n0NC59XfCZAghM78eHxqEarr5wSsvpF1xepTn9Mgyza bLuJgacVIGWS3iVS0EFvgtLsR53HqH/nMNA/SD3sIkWoNcxoa3NkDyRjsoIkpT2BBa TqaYEG1ghVZmD6DKX9i+V4gALofVRWWbwqlF2Wb/D0LOeSgDof7tmxKE+2Y0eHE60h E1huATWEe5QlQsgsCG2nAEFs17M7V8XHs6UppC7VrCx0ei2D/0Elpby8X44YvqQ8hx o39BOIhYgAUhQ== From: "Paul A. Patience" Message-ID: <20220502211624.689372-3-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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)[snippet]: Remove trailing boolean (and therefore the 'begin'). [arguments]: Remove trailing boolean. --- gnu/packages/simulation.scm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.36.0 diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index c8309761d2..42383bf486 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -782,11 +782,9 @@ (define-public python-meshio (base32 "0kv832s2vyff30zz8yqypw5jifwdanvh5x56d2bzkvy94h4jlddy")) (snippet - '(begin - (let ((file (open-file "setup.py" "a"))) - (display "from setuptools import setup\nsetup()" file) - (close-port file)) - #t)))) + '(let ((file (open-file "setup.py" "a"))) + (display "from setuptools import setup\nsetup()" file) + (close-port file))))) (build-system python-build-system) (inputs (list python-h5py @@ -802,8 +800,7 @@ (define-public python-meshio (replace 'check (lambda* (#:key outputs inputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) - (invoke "python" "-m" "pytest" "-v" "tests") - #t))))) + (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 From patchwork Mon May 2 21:16:58 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: 39078 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 C6B5F27BBEA; Mon, 2 May 2022 22:18:12 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 9BF5C27BBE9 for ; Mon, 2 May 2022 22:18:12 +0100 (BST) Received: from localhost ([::1]:35166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldQp-0005Po-Px for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQh-0005PM-5y for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQg-0008NO-Sy for guix-patches@gnu.org; Mon, 02 May 2022 17:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQg-0006Qw-Pi for guix-patches@gnu.org; Mon, 02 May 2022 17:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 3/8] gnu: python-meshio: Honor #:tests? flag. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18:02 +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.165152623124601 (code B ref 55060); Mon, 02 May 2022 21:18:02 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:11 +0000 Received: from localhost ([127.0.0.1]:38161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldPq-0006Oj-T4 for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:11 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]:21199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldPp-0006OK-UU for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:10 -0400 Date: Mon, 02 May 2022 21:16:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526224; bh=L/fHCByEvThgIFv5Mp4FeGbdzOqzpJKQUjEWW0Dy0IQ=; 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=a2LlT9qW0Vl69XFaYDnpO8R8iDpO6BZ6stFt5nNsPTp80fLcAqCoBG8NhRSFlGlxV Z2+VT8P60rN8KaCD/DMkfXrUf82/V7axy1Or9xEznRU5CbFGdgrv2csDHaYIiin+xs fpcTjMCwxJnPOj7RPhRRsX20bx2echnfyonyNMvlnfSjocBGqWOQS7ewS/GFVtpvcx Hln487aGaXTOambbDXQUTu6j0phdKaSH6ey4OFX9AVQ1gN5o6dxbD1seXrwGqwCvKN 1Vyib6mubAwDAG83raE0kWyRxIszaOJciUOBe4h5KrAWitRX0eWB4H9QNuYbCINcGz TObGgiQcatCOw== From: "Paul A. Patience" Message-ID: <20220502211624.689372-4-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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. Remove unnecessary 'add-installed-pythonpath' call. --- gnu/packages/simulation.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.36.0 diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 42383bf486..b927392263 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -795,12 +795,12 @@ (define-public python-meshio (list python-importlib-metadata python-numpy)) (arguments - `(#:phases + '(#: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? #:allow-other-keys) + (when tests? + (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 From patchwork Mon May 2 21:17:10 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: 39081 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 C330B27BBEA; Mon, 2 May 2022 22:18:21 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 86BA227BBE9 for ; Mon, 2 May 2022 22:18:21 +0100 (BST) Received: from localhost ([::1]:35784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldQy-0005rY-NP for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:18:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQh-0005PW-KL for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQh-0008NW-8r for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQh-0006R4-5R for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 4/8] gnu: python-meshio: Update to 5.3.4. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18: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.165152624624630 (code B ref 55060); Mon, 02 May 2022 21:18:03 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:26 +0000 Received: from localhost ([127.0.0.1]:38165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQ6-0006PC-4c for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:26 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]:41042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQ3-0006Ox-VS for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:24 -0400 Date: Mon, 02 May 2022 21:17:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526237; bh=Xyjccof/hBdrt4nF1bx24zZOuN6+E8n66P83slTlNK4=; 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=fUMlfvt9uyvqsKgl258+0pNWyNArEwqzz7r1TadbfAsVAv4Q5bw1nkkNpCafTfvWb LbjFn8P0ovRrflDak9A8QwKu+OITtrW8ERikZzAMN/WeMkQshojHjWmtQ8WGz4sfK/ 0Y//PBip0Peqf5IGTKPL14B6IwW96sBAVGw98fKJabNY9li2q1ES35L1DJ/HVhp179 7Zrf8pcUyKAkRsL9xaNwqn+JNSpS1A+PiXSilWXaZ6KhYcECM/3LcGOymt0Wv4t/MN SjNlz2q1L8SZteB3crW45dsFJjB+V0SV6NEOKaSLg6dqy3pt+QnnCrsMgOlU8gBq0Y v7n+AU8Ppi8ag== From: "Paul A. Patience" Message-ID: <20220502211624.689372-5-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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): Update to 5.3.4. [source]: Reindent. [propagated-inputs]: Add python-rich. --- gnu/packages/simulation.scm | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) -- 2.36.0 diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index b927392263..19e41b0591 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -773,18 +773,18 @@ (define-public fullswof-2d (define-public python-meshio (package (name "python-meshio") - (version "4.4.6") + (version "5.3.4") (source - (origin - (method url-fetch) - (uri (pypi-uri "meshio" version)) - (sha256 - (base32 - "0kv832s2vyff30zz8yqypw5jifwdanvh5x56d2bzkvy94h4jlddy")) - (snippet - '(let ((file (open-file "setup.py" "a"))) - (display "from setuptools import setup\nsetup()" file) - (close-port file))))) + (origin + (method url-fetch) + (uri (pypi-uri "meshio" version)) + (sha256 + (base32 + "1w39qcg0rw5kb04j7sa45fnqd6k20fsdgrf62cmw2ygjgwnnjh72")) + (snippet + '(let ((file (open-file "setup.py" "a"))) + (display "from setuptools import setup\nsetup()" file) + (close-port file))))) (build-system python-build-system) (inputs (list python-h5py @@ -793,7 +793,8 @@ (define-public python-meshio (list python-pytest)) (propagated-inputs (list python-importlib-metadata - python-numpy)) + python-numpy + python-rich)) (arguments '(#:phases (modify-phases %standard-phases From patchwork Mon May 2 21:17:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 39082 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 3BA8B27BBEA; Mon, 2 May 2022 22:18:22 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 0245B27BBE9 for ; Mon, 2 May 2022 22:18:22 +0100 (BST) Received: from localhost ([::1]:35804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldQz-0005sV-1M for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:18:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQh-0005Pe-Uz for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQh-0008Ng-ME for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQh-0006RB-Ha for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 5/8] gnu: Add python-pyperf. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18: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.165152624924645 (code B ref 55060); Mon, 02 May 2022 21:18:03 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:29 +0000 Received: from localhost ([127.0.0.1]:38169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQ9-0006PQ-CQ for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:29 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:24903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQ7-0006P2-GS for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:27 -0400 Date: Mon, 02 May 2022 21:17:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526241; bh=C9waFKVFCvvXbkzK3Puo8TtTTQk7sRfM6sZU7+LIPWc=; 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=AQNxPRrK5bpyttT1l3/25tF5fsZTQnAT1pdjz0uB3SpE4qIAAHcnKTbEX6UyRN8MP sD+UU1FFBLhkVL1tG6k67d05idMJxHP0vKIuIEUhVuwvKRDokT4Io0Ok038pmjyKT6 6C+KdJsfbp2XtpeL19RE5RnfnulP428UPzhuFhHbXZXbbEKzQllvgii8ja4jjHxblZ u/D+eyqWAa5Ml6Ee+T3hN5RTEii/+nkLQwjW2PFD6d2zn+Ar91U9koxcJViv7DWR5Z Hsq/kpbjrNea4rLs5tH3wsEC5IJahEGrMlSaKD2m5Jy0PfU2avfyPi7XnHPMB8LVae PrbcBxPLQY/kA== From: "Paul A. Patience" Message-ID: <20220502211624.689372-6-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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/python-xyz.scm (python-pyperf): New variable. --- gnu/packages/python-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) -- 2.36.0 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a5d311680..84f8b991e5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29534,3 +29534,50 @@ (define-public python-sre-yield uses the parsed regular expression, so you get a much more accurate result than trying to just split strings.") (license license:asl2.0))) + +(define-public python-pyperf + (package + (name "python-pyperf") + (version "2.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyperf" version)) + (sha256 + (base32 "189qf9wdbig0fk4n3bavx8acgdbay5lllfvw48jvbfaafb7y5hja")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + ;; Some of these tests fail with: + ;; + ;; ModuleNotFoundError: No module named 'pyperf' + ;; + ;; even when calling ‘add-installed-pythonpath’ in the ‘check’ + ;; phase. + (delete-file "pyperf/tests/test_examples.py"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; From tox.ini's ‘testenv.commands’. + (invoke "python" "-bb" "-Wd" + "-m" "unittest" "discover" + "-s" "pyperf/tests/" "-v"))))))) + (native-inputs + (list python-psutil)) + (home-page "https://github.com/psf/pyperf") + (synopsis "Toolkit for running Python benchmarks") + (description "The Python @code{pyperf} module is a toolkit for writing, +running and analyzing benchmarks. It features a simple API that can: + +@itemize +@item automatically calibrate a benchmark for a time budget; +@item spawn multiple worker processes; +@item compute the mean and standard deviation; +@item detect if a benchmark result seems unstable; +@item store benchmark results in JSON format; +@item support multiple units: seconds, bytes and integer. +@end itemize") + (license license:expat))) From patchwork Mon May 2 21:17:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 39083 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 B944F27BBEA; Mon, 2 May 2022 22:18:35 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 74A3827BBE9 for ; Mon, 2 May 2022 22:18:35 +0100 (BST) Received: from localhost ([::1]:36308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldRC-0006DW-Jb for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:18:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQi-0005Pn-B9 for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQi-0008No-2V for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQh-0006RI-Tj for guix-patches@gnu.org; Mon, 02 May 2022 17:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 6/8] gnu: Add python-pyvips. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18: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.165152626224672 (code B ref 55060); Mon, 02 May 2022 21:18:03 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:42 +0000 Received: from localhost ([127.0.0.1]:38173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQL-0006Pr-Li for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:41 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:55587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQJ-0006Pd-OF for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:40 -0400 Date: Mon, 02 May 2022 21:17:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526254; bh=iU0NS+PoFPH3pG7+1kOaO55k9miIhr+TSwUCFF7lSg0=; 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=ijVErAVD60eJOL/hj+iA9s6lqYPqBH2+HnGKtoepvZsI+LkUyYbPkE2X3us3UG+hB RzN4KvUenow5HVyT7XeN6FGBkYJVvj2strraqEyFHlwuZkvghutlawPRlHxB+55yAt PYUuXnsUDNPKA+N+1RZ8TZzSmJ85bPVecOPFntn5O4XM9jqOzgSqHtzjyaBbvil7zg 5FWctERmzCEBFS5zLR6zzzfG9ooP/uwBtNb0cSi2sf0zoAGlwCG/5n1OVzFJMdzAgX JEMrCwOj9jQ9a7czVx5bVL6YmT+0np2V22WVPErgSG8+10nshXv19HMWi6cGBRZl0T Spg94Q5TwKwDw== From: "Paul A. Patience" Message-ID: <20220502211624.689372-7-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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/python-xyz.scm (python-pyvips): New variable. --- gnu/packages/python-xyz.scm | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) -- 2.36.0 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 84f8b991e5..c70379a056 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -172,6 +172,7 @@ (define-module (gnu packages python-xyz) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) + #:use-module (gnu packages image-processing) #:use-module (gnu packages imagemagick) #:use-module (gnu packages jupyter) #:use-module (gnu packages kerberos) @@ -7582,6 +7583,65 @@ (define-public python-imageio data, and scientific formats.") (license license:bsd-2))) +(define-public python-pyvips + (package + (name "python-pyvips") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyvips" version)) + (sha256 + (base32 "0lq71iiic4pc8qhxr60gi141w25pjnn4vsh05d5l0fjkgjsv137b")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; Maybe switch to API mode (i.e., build the C extension)? + ;; It is advertised as faster to start up and run. + ;; However, even with ‘pkg-config’ and ‘python-pkgconfig’ in + ;; ‘native-inputs’, the API mode build fails with: + ;; + ;; Falling back to ABI mode. Details: unable to find pkg-config package "vips" + ;; + ;; The build doesn't actually fail without the below + ;; substitution, it's just slower because ‘setup.py’ tries + ;; (unsuccessfully) to download the Python ‘pkgconfig’ module. + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "setup.py" + (("^( +setup_)API\\(\\)\n" _ prefix) + (string-append prefix "ABI()\n"))))) + (add-after 'unpack 'fix-paths + (lambda _ + (substitute* "pyvips/__init__.py" + (("^( +_vips_libname) = '(libvips.so.42)'" + _ var libname) + (format #f "~a = '~a/lib/~a'" + var #$(this-package-input "vips") libname)) + (("^( +_gobject_libname) = '(libgobject-2.0.so.0)'" + _ var libname) + (format #f "~a = '~a/lib/~a'" + var #$(this-package-input "glib") libname))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "setup.py" "test"))))))) + (native-inputs + (list python-pyperf + python-pytest + python-pytest-flake8 + python-pytest-runner)) + (inputs + (list glib vips)) + (propagated-inputs + (list python-cffi)) + (home-page "https://github.com/libvips/pyvips") + (synopsis "Python bindings for VIPS") + (description "The @code{pyvips} package provides Python bindings for VIPS, +a multithreaded image-processing system with low memory needs.") + (license license:expat))) + (define-public python-pycparser (package (name "python-pycparser") From patchwork Mon May 2 21:17:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 39080 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 9928F27BBE9; Mon, 2 May 2022 22:18:16 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 E9D5927BBEA for ; Mon, 2 May 2022 22:18:15 +0100 (BST) Received: from localhost ([::1]:35294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldQt-0005WH-3W for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQi-0005Qf-P3 for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQi-0008Nv-FU for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQi-0006RQ-Bf for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 7/8] gnu: Add python-scooby. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18:04 +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.165152627224695 (code B ref 55060); Mon, 02 May 2022 21:18:04 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:52 +0000 Received: from localhost ([127.0.0.1]:38177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQR-0006QA-Vr for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:52 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:27609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQQ-0006Pq-4b for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:46 -0400 Date: Mon, 02 May 2022 21:17:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526260; bh=kYsJn5OZnVtWCM/aNfmwkERJiVJVL8bfMWZV9rlzd3U=; 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=YjfXqAzXToglXAW50+4CbZlR88LeOxCoWfskSi2m1YJHIhSLnMPfH5EAbVWEU0Q0Q vUaBZW7VgF1w1+oWDCrQ91Dw0wMj6vSH6tSvQleWsrU4w/bO5J9nZWa9jTFm1zoaY7 pR/SJZs5zHiIjkf6/DaMHhgh7D4Ey/TnMYl9hY9XqnkBIZHtfYEoWZhymNzguWAWHC dGmBU2FkK0I0aUIn84EzLLfhjmHwNe269wRegSZEUkm+05jYj7+vQOVDQBKxQflJor brVY2WaDl6U6iAKBQheHKxqUePmZdRsO+EGudoMcrICeSnxCGKNbokAWpwOFaNaWac t0rVYSKjVJb8g== From: "Paul A. Patience" Message-ID: <20220502211624.689372-8-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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/python-xyz.scm (python-pyvips-for-python-scooby, python-scooby): New variables. --- gnu/packages/python-xyz.scm | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) -- 2.36.0 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c70379a056..20dbcefde0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -119,6 +119,7 @@ ;;; Copyright © 2022 Evgeny Pisemsky ;;; Copyright © 2022 drozdov ;;; Copyright © 2022 Peter Polidoro +;;; Copyright © 2022 Paul A. Patience ;;; ;;; This file is part of GNU Guix. ;;; @@ -29641,3 +29642,83 @@ (define-public python-pyperf @item support multiple units: seconds, bytes and integer. @end itemize") (license license:expat))) + +;; Scooby requires for its test suite a ‘pyvips’ package that is missing its +;; VIPS dependency. +(define python-pyvips-for-python-scooby + (package + (inherit python-pyvips) + (name "python-pyvips-for-python-scooby") + (arguments + (substitute-keyword-arguments (package-arguments python-pyvips) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'fix-paths) + ;; The checks won't succeed without VIPS. + (delete 'check) + (delete 'sanity-check))))) + (inputs + (modify-inputs (package-inputs python-pyvips) + (delete "vips"))) + (synopsis "pyvips for Scooby's test suite"))) + +(define-public python-scooby + (package + (name "python-scooby") + (version "0.5.12") + (source + ;; The PyPI tarball does not contain the tests. + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/banesullivan/scooby") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gkpmz8wl3jg8ylf1na35308sznw2g9wx33zqlyq5i2gpy2ml9mw")))) + (build-system python-build-system) + (native-inputs + (list python-beautifulsoup4 + python-numpy + python-pytest + python-pytest-cov + python-pyvips-for-python-scooby + python-scipy)) + (propagated-inputs + (list python-psutil)) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + (substitute* "tests/test_scooby.py" + ;; The test suite uses the no-version PyPI package + ;; (https://pypi.org/project/no-version/), + ;; but it doesn't seem worth packaging in Guix just for this. + (("scooby\\.report\\.VERSION_NOT_FOUND") + "scooby.report.MODULE_NOT_FOUND") + (("^ +import no_version # noqa.*") "")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (home-page "https://github.com/banesullivan/scooby") + (synopsis "Report hardware information and Python package versions") + (description + "The Scooby package reports the following information about the currently +running system: + +@itemize +@item operating system name; +@item hardware information including machine type (e.g., @samp{i386}, +@samp{x86_64}, etc.), CPU count and total RAM; +@item Python environment (e.g., Python, IPython, etc.); +@item file system name; +@item Python version; +@item versions of specified Python packages. +@end itemize + +It can generate reports as HTML tables or plain text lists. + +Scooby has no required dependencies, and only few optional dependencies.") + (license license:expat))) From patchwork Mon May 2 21:17:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 39084 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 60C0F27BBEA; Mon, 2 May 2022 22:18:36 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 1900B27BBE9 for ; Mon, 2 May 2022 22:18:36 +0100 (BST) Received: from localhost ([::1]:36324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldRC-0006E4-VU for patchwork@mira.cbaines.net; Mon, 02 May 2022 17:18:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQj-0005S9-5Z for guix-patches@gnu.org; Mon, 02 May 2022 17:18:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQi-0008O3-Sn for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQi-0006RX-PF for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 8/8] gnu: Add python-pyvista. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18:04 +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.165152627824714 (code B ref 55060); Mon, 02 May 2022 21:18:04 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:58 +0000 Received: from localhost ([127.0.0.1]:38181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQc-0006QX-9I for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:58 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:57094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQa-0006QE-7p for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:56 -0400 Date: Mon, 02 May 2022 21:17:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526270; bh=9BoGMDv1Zq8xzHoe8zRdE6nDV+aOsZnqFBaNXaPC+cE=; 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=CF9fdAEkqgcxina7weilXuPY+Ri6Z/iKI+GqBGI20uQrc879ap1ungFZkZhtLTWKG 564x5+P1ULhdOGHWvNOwRzE/jWZfuaZDEiHfzvmrcNFRPwoy38RXLIHia+G40vsfCm 95wGGHh0ydpECaT5MG6G9AD+/NBRvGVrct3Cof187xBWMTkyks3+q1cWMpNcCvfaVX Fr91diaSl2nUZBDNS2vlXK45PxzV4qB2N0qPYC2cVvW3GgiCaUguXjNedTh/Bn5Jsf xmzaa0EruQCFC0TfPhwSNwoBa8JmPgHvKfLhaYajO2Ae0ql9r3QpzZ8HGoB+cFaDq8 JNmf3v8mhaxaA== From: "Paul A. Patience" Message-ID: <20220502211624.689372-9-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-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/python-science.scm (python-pyvista): New variable. --- gnu/packages/python-science.scm | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) -- 2.36.0 diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 07d713e013..a62de1e5a0 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021 Felix Gruber ;;; Copyright © 2022 Malte Frank Gerdes ;;; Copyright © 2022 Guillaume Le Vaillant +;;; Copyright © 2022 Paul A. Patience ;;; ;;; This file is part of GNU Guix. ;;; @@ -1183,3 +1184,55 @@ (define-public python-numpy-groupies "This package provides optimized tools for group-indexing operations: aggregated sum and more.") (license license:bsd-3))) + +(define-public python-pyvista + (package + (name "python-pyvista") + (version "0.34.0") + (source + ;; The PyPI tarball does not contain the tests. + ;; (However, we don't yet actually run the tests.) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pyvista/pyvista") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0f2x2wvi5pkpv5h3jrnx8zxnaj51navfqp2fdna1l9rpjgjjf94g")))) + (build-system python-build-system) + (propagated-inputs + (list python-appdirs + python-imageio + python-matplotlib + python-meshio + python-numpy + python-pillow + python-scooby + vtk)) + (arguments + '(#:phases + (modify-phases %standard-phases + ;; Disable tests for now because they require several modules + ;; currently unpackaged in Guix. + (delete 'check) + ;; Disable the sanity check, which fails with the following error: + ;; + ;; ...checking requirements: ERROR: pyvista==0.34.0 DistributionNotFound(Requirement.parse('vtk'), {'pyvista'}) + (delete 'sanity-check)))) + (home-page "https://docs.pyvista.org/") + (synopsis "3D plotting and mesh analysis through VTK") + (description + "PyVista is... + +@itemize +@item @emph{Pythonic VTK}: a high-level API to the Visualization +Toolkit (VTK); +@item mesh data structures and filtering methods for spatial datasets; +@item 3D plotting made simple and built for large/complex data geometries. +@end itemize + +This package provides a Pythonic, well-documented interface exposing VTK's +powerful visualization backend to facilitate rapid prototyping, analysis, and +visual integration of spatially referenced datasets.") + (license license:expat)))