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)))