From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MDUQDV9Q+2CQ3gAAgWs5BA (envelope-from ) for ; Sat, 24 Jul 2021 01:27:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mMPICF9Q+2COWgAA1q6Kng (envelope-from ) for ; Fri, 23 Jul 2021 23:27:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EE6DE18462 for ; Sat, 24 Jul 2021 01:27:26 +0200 (CEST) Received: from localhost ([::1]:38348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m74Zi-0006Jj-1z for larch@yhetil.org; Fri, 23 Jul 2021 19:27:26 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627082847; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SK3NOM6z+uMitXyXozkfNRAI89ORuJwLAsRUCZ/8HCw=; b=Y+mDP5yyxd9PIrcqn+mHAoGTCMutv+CvdYXlO9i1lCVWhOztWRGFJvuYCbFEW1i3YQQYsl Zqbyj94YxLjeJsOG7S/Ow29E6SL8gu6AyNWzCEihQc639MbVsKhMKIofMS/4e6QfJ5Heyw IpPVUJslWOKI4hub091bkVjbgqKsAT6qf4iOHA+s5TshtVfb45JmVfiR/Qc6pgsG+hkxjA kLKX1fh4NlgvMN4GKVXzpW4Kh7lbjQAAeWb7o2ZM+TwjAqO9xlqntQ0IRTfC0dtt+EdYjA p/Grn5je5bjAUdAcQRkq7EulucKxmmIgoZ0/FD5EimCfjoYAIi4xVWh3t58XSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627082847; a=rsa-sha256; cv=none; b=FFI/2N2Uh5W8FTyDSiW/Z0KSfu8Ij2gGNWBsKbXGs/tQ+StCzQWoHgJ15kRCDX91LgS9/A SFbx39doVKgvUNRveBVoSmnREIVBztr/iTD3wF7vS+oTIDTLFAKZzu3orDNsKqhR04KaJg F7i1ltc9M3FIUjWmueNbI0yJ/weyNGBzCXN8K0mzSyvVG7VrbTnXyqxfw8vUI5SKGpKWjE eNgluhwD62eK/11j5+0eipBNZf5GspTaXb9H8NKgl8d3a5E6nVRhiCF74wRl3ZaI6wQeb1 qnDJJx8qXwIg+c3VOCzlxocuC1UcKFZiTXZ5EpKo40k/l0BC6JEkpwbOXn6bkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=qUimYhzl; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=qUimYhzl; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EE6DE18462 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: oKByhZFxDMwO * 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") -- 2.30.2