From patchwork Fri Jun 9 14:58:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 50794 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 78BFD27BBEA; Fri, 9 Jun 2023 16:02:17 +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=ham 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 8851C27BBE2 for ; Fri, 9 Jun 2023 16:02:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7dcr-0005tu-7V; Fri, 09 Jun 2023 11:02:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7dco-0005sY-7H for guix-patches@gnu.org; Fri, 09 Jun 2023 11:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7dcn-0002ye-UP for guix-patches@gnu.org; Fri, 09 Jun 2023 11:02:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7dcn-0004ic-OR for guix-patches@gnu.org; Fri, 09 Jun 2023 11:02:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49207] [PATCH v2 5/5] gnu: Add python-scitools-iris. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jun 2023 15:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49207 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49207@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 49207-submit@debbugs.gnu.org id=B49207.168632286518072 (code B ref 49207); Fri, 09 Jun 2023 15:02:01 +0000 Received: (at 49207) by debbugs.gnu.org; 9 Jun 2023 15:01:05 +0000 Received: from localhost ([127.0.0.1]:60050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7dbs-0004hP-Ta for submit@debbugs.gnu.org; Fri, 09 Jun 2023 11:01:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7dbq-0004gK-46 for 49207@debbugs.gnu.org; Fri, 09 Jun 2023 11:01:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5AE1A240101 for <49207@debbugs.gnu.org>; Fri, 9 Jun 2023 17:00:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686322856; bh=42Nk2Kma1UjG/eJ/DQucoT8gdU4yQgiBiqwBNqcOeNQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=Q3SQp2ZyUbYBC3GqPbJWGiDvVtnV9YowhnBnh5KuUV0wxpe0yGW/cFZ4kPwY1ld15 4hgrXpLGXWoX2fBWTbjdgS/fJWosJaB3iOhAGFwGUKovEgQf7bUD3VUzBaoSJh/SHW arnyfBExmWFTT5rVygaXh9aDJSKGUsTUcV1dU7ZY5FpwZtyPOfLCd2dwu/SPm36/ef h2fNuxU5/nmrlK3i1Fg2VZaYru+zH7HVasK+VhR9+K8HL5izSGDHgFlClzTFSsKVJl Q/omPG9RbtmG6r+4cNu1Gg7SHk/m7/yRFGZKKK5pZlUwkdtZXICRwpF0ZfDAnzmBy6 4RTayMudT2qCg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qd45f3Czxz9rxB; Fri, 9 Jun 2023 17:00:54 +0200 (CEST) From: Vinicius Monego Date: Fri, 9 Jun 2023 14:58:54 +0000 Message-Id: <20230609145854.2581045-5-monego@posteo.net> In-Reply-To: <20230609145854.2581045-1-monego@posteo.net> References: <20230609145854.2581045-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/geo.scm (python-scitools-iris): New variable. --- gnu/packages/geo.scm | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index c1b028104c..eb58781591 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -73,6 +73,7 @@ (define-module (gnu packages geo) #:use-module (gnu packages curl) #:use-module (gnu packages databases) #:use-module (gnu packages datastructures) + #:use-module (gnu packages digest) #:use-module (gnu packages docbook) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) @@ -1428,6 +1429,74 @@ (define-public python-cf-units Climate and Forecast (CF) metadata conventions.") (license license:lgpl3+))) +(define-public python-scitools-iris + (package + (name "python-scitools-iris") + (version "3.6.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "scitools-iris" version)) + (sha256 + (base32 + "08r13aans17qgv93m0hwzwmiqvbgkn5rhp9r5szyv4i99xz62igj")))) + (build-system pyproject-build-system) + (arguments + ;; Tests below fail because of URL open errors and missing data (which is + ;; probably being downloaded). + (list #:test-flags + #~(list "--ignore" "lib/iris/tests/test_cf.py" + "--ignore" "lib/iris/tests/integration/netcdf/test_delayed_save.py" + "--ignore" "lib/iris/tests/integration/netcdf/test_thread_safety.py" + "--ignore" "lib/iris/tests/integration/plot/test_vector_plots.py" + "--ignore" "lib/iris/tests/unit/analysis/regrid/test__CurvilinearRegridder.py" + "-k" (string-append "not test_python_versions" + " and not test_2d_coords_contour" + " and not test_grouped_dim" + " and not test_ungrouped_dim")) + #:phases #~(modify-phases %standard-phases + (add-before 'check 'build-std-names + (lambda _ + ;; Need to build lib/iris/std_names.py before + ;; running the tests. + (invoke "python" "setup.py" "std_names") + ;; Replace some executable paths. + (let ((nc #$(this-package-native-input "netcdf"))) + (substitute* "lib/iris/tests/stock/netcdf.py" + (("env_bin_path\\(\"ncgen\"\\)") + (format #f "\"~a/bin/ncgen\"" nc))) + (substitute* "lib/iris/tests/__init__.py" + (("env_bin_path\\(\"ncdump\"\\)") + (format #f "\"~a/bin/ncdump\"" nc)))))) + ;; To avoid the antlr4 error from cf-units. + (delete 'sanity-check)))) + (native-inputs (list netcdf + python-click + python-filelock + python-imagehash + python-pytest + python-setuptools-scm + python-wheel)) + (propagated-inputs (list python-cartopy + python-cf-units + python-cftime + python-dask + python-distributed + python-matplotlib + python-netcdf4 + python-numpy + python-pyproj + python-scipy + python-shapely + python-xxhash)) + (home-page "https://github.com/SciTools/iris") + (synopsis "Library for analysing and visualising Earth science data") + (description + "Iris is a Python library for analysing and visualising Earth ++science data. It excels when working with multi-dimensional Earth Science ++data, where tabular representations become unwieldy and inefficient. Iris ++implements a data model based on the CF conventions.") + (license license:lgpl3+))) + (define-public tegola (package (name "tegola")