From patchwork Fri Jul 23 23:25:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 31582 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 6942527BC78; Sat, 24 Jul 2021 00:27:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2445227BC6B for ; Sat, 24 Jul 2021 00:27:26 +0100 (BST) Received: from localhost ([::1]:38348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m74Zh-0006Jj-8p for patchwork@mira.cbaines.net; Fri, 23 Jul 2021 19:27:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m74ZM-0005RF-Rg for guix-patches@gnu.org; Fri, 23 Jul 2021 19:27:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m74ZM-0005sp-JK for guix-patches@gnu.org; Fri, 23 Jul 2021 19:27:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m74ZM-0007lr-Gw for guix-patches@gnu.org; Fri, 23 Jul 2021 19:27:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49207] [PATCH 6/6] gnu: Add python-iris. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Jul 2021 23:27:04 +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: To: 49207@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 49207-submit@debbugs.gnu.org id=B49207.162708279929792 (code B ref 49207); Fri, 23 Jul 2021 23:27:04 +0000 Received: (at 49207) by debbugs.gnu.org; 23 Jul 2021 23:26:39 +0000 Received: from localhost ([127.0.0.1]:44913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m74Yt-0007kL-NW for submit@debbugs.gnu.org; Fri, 23 Jul 2021 19:26:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]:50487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m74Yr-0007ji-4h for 49207@debbugs.gnu.org; Fri, 23 Jul 2021 19:26:34 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 86405240101 for <49207@debbugs.gnu.org>; Sat, 24 Jul 2021 01:26:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1627082787; bh=aRIAbdFExrrk8hWqf4MstJQSj4kHjFIi4E0CSfP2Txw=; h=From:To:Cc:Subject:Date:From; b=qUimYhzlkJYLm9XyHMeFo5dDjdznUS8d8VBSmOImDi2fNxDGeKvuYxsGX57L+GQbn KkWVPaH/g1QjAnzrSrWPqcRpMC3DKaCGCxIOj304x/R65ZFeuo2jE/96hibjaRLPm0 jn+w4TNjdnN21KR08JfXFRKq4qXinMhe12xUYaf844CvjPkJDxGOyH+nxlTQCbaDjS e93QQecIHKSroaXLsfXYBQlE9P32CWVeTK9xZUWDaJBZvutoK/WwKcGdPbsdahALgh zlCa3zxe/WQHDz/V6Qm2t+WTWrcwkAalQ+6UYqKqILWq54Afcxsx9jNtg6wxqJKnZs mFrROqDDrYNuA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GWlnZ4J7Zz6tmF; Sat, 24 Jul 2021 01:26:26 +0200 (CEST) From: Vinicius Monego Date: Fri, 23 Jul 2021 23:25:29 +0000 Message-Id: <20210723232529.23745-7-monego@posteo.net> In-Reply-To: <20210723232529.23745-1-monego@posteo.net> References: <20210723232529.23745-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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/geo.scm (python-iris): New variable. --- gnu/packages/geo.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 314165062c..36c020e31d 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -92,6 +92,7 @@ #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) + #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) @@ -945,6 +946,72 @@ Shapely capabilities Climate and Forecast (CF) metadata conventions.") (license license:lgpl3))) +(define-public python-iris + (package + (name "python-iris") + (version "3.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "scitools-iris" version)) + (sha256 + (base32 "1zqicscnnfqpck960xdjng38qk0w0spmcysl89l3smagdsagzxkr")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + ;; Some tests require a writable home. + (setenv "HOME" "/tmp") + ;; Iris will check for "scitools-iris[test]" before running the + ;; tests. The complete test set weighs 150MB. Skip this check. + (substitute* "setup.py" + ((".*tests_require.*") "")) + ;; The tests below open external connections. + (substitute* + "lib/iris/tests/integration/plot/test_vector_plots.py" + (("test_2d_plain_latlon") "_test_2d_plain_latlon") + (("test_2d_plain_latlon_on_polar_map") + "_test_2d_plain_latlon_on_polar_map") + (("test_2d_rotated_latlon") "_test_2d_rotated_latlon")) + (substitute* + "lib/iris/tests/integration/plot/test_plot_2d_coords.py" + (("test_2d_coords_contour") "_test_2d_coords_contour")) + ;; This one fails with AssertionError. + (substitute* "lib/iris/tests/experimental/test_animate.py" + (("test_cube_animation") "_test_cube_animation")) + ;; Compile Pyke rules before running the tests. + (invoke "python" "setup.py" "pyke_rules")))))) + (propagated-inputs + `(("python-cartopy" ,python-cartopy) + ("python-cf-units" ,python-cf-units) + ("python-cftime" ,python-cftime) + ("python-dask" ,python-dask) + ("python-matplotlib" ,python-matplotlib) + ("python-netcdf4" ,python-netcdf4) + ("python-numpy" ,python-numpy) + ("python-scipy" ,python-scipy) + ("python-xxhash" ,python-xxhash))) + (native-inputs + `(("netcdf" ,netcdf) + ("python-black" ,python-black) + ("python-filelock" ,python-filelock) + ("python-imagehash" ,python-imagehash) + ("python-nose" ,python-nose) + ("python-pillow" ,python-pillow) + ("python-pyke" ,python-pyke) + ("python-requests" ,python-requests) + ("python-wheel" ,python-wheel))) + (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.") + ;; See iris/docs/src/copyright.rst. + (license license:lgpl3+))) + (define-public postgis (package (name "postgis")