From patchwork Thu Jun 24 12:39:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 30667 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 B7B8627BC81; Thu, 24 Jun 2021 13:40:13 +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,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 C909127BC78 for ; Thu, 24 Jun 2021 13:40:12 +0100 (BST) Received: from localhost ([::1]:44362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwOeR-0001Ah-UP for patchwork@mira.cbaines.net; Thu, 24 Jun 2021 08:40:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwOeK-0001AI-50 for guix-patches@gnu.org; Thu, 24 Jun 2021 08:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwOeI-00083m-LO for guix-patches@gnu.org; Thu, 24 Jun 2021 08:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwOeI-0000GO-Jv for guix-patches@gnu.org; Thu, 24 Jun 2021 08:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49207] gnu: Add python-iris. (scitools) Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Jun 2021 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49207 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 49207@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1624538387984 (code B ref -1); Thu, 24 Jun 2021 12:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2021 12:39:47 +0000 Received: from localhost ([127.0.0.1]:42611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwOdx-0000Fi-8a for submit@debbugs.gnu.org; Thu, 24 Jun 2021 08:39:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:60098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwOdt-0000FY-5l for submit@debbugs.gnu.org; Thu, 24 Jun 2021 08:39:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwOds-00018N-R4 for guix-patches@gnu.org; Thu, 24 Jun 2021 08:39:36 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwOdp-0007sD-RG for guix-patches@gnu.org; Thu, 24 Jun 2021 08:39:36 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1A7852400E5 for ; Thu, 24 Jun 2021 14:39:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1624538370; bh=Zkl+tZCfMvX1E6mW245TyGRaljKB/Ikv/dNwXW0kkRI=; h=Subject:From:To:Date:From; b=Zb3xz8K/rbUthyQ96lmSqG8aZt3wXYzwYI/SmnwlVaYvLhTgTQSQl7pu8Jfc1bldx U7Fg2DMstaj4xsYETgQRm/KqV3vPpfwuds/mgl4i8fUiWB63UL+coanxOutrEN+R34 /R7rA81yV5QEgy2lSk3odAXIbZrozS4kH1uva0GSqediCujbpmH+OxJu8WhpXACUw1 lcbRLPCJlatVVV7lnggSzzDtPtrSOY3jjF6BONoRHhJ4RiiM7//fSdiVdNF9pEGWRc gG/lnDNe+FCAcDakvVAlZKqwevAPXluZNV4KXKlb9gTaU84k1kCQxMmGSjlx7wxgih jT4B02FnWj3Ig== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G9fpS5cpQz6tmK for ; Thu, 24 Jun 2021 14:39:28 +0200 (CEST) Message-ID: From: Vinicius Monego Date: Thu, 24 Jun 2021 12:39:15 +0000 MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 From c6c77fe7c130274b5b68ac6fd283bba4dad382ae Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 May 2021 18:43:03 -0300 Subject: [PATCH 6/6] gnu: Add python-iris. * 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 3ea7804725..65d43849df 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) @@ -1017,6 +1018,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") -- 2.32.0