From: Vinicius Monego <monego@posteo.net>
To: 49207@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#49207] [PATCH v2 5/5] gnu: Add python-scitools-iris.
Date: Fri, 9 Jun 2023 14:58:54 +0000 [thread overview]
Message-ID: <20230609145854.2581045-5-monego@posteo.net> (raw)
In-Reply-To: <20230609145854.2581045-1-monego@posteo.net>
* 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")
--
2.34.1
prev parent reply other threads:[~2023-06-09 15:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-24 12:39 [bug#49207] gnu: Add python-iris. (scitools) Vinicius Monego
2021-07-23 23:25 ` [bug#49207] [PATCH 0/6] gnu: Add python-iris (scitools) Vinicius Monego
2021-07-23 23:25 ` [bug#49207] [PATCH 1/6] gnu: Add python-imagehash Vinicius Monego
2021-07-23 23:25 ` [bug#49207] [PATCH 2/6] gnu: Add python-xxhash Vinicius Monego
2021-07-23 23:25 ` [bug#49207] [PATCH 3/6] gnu: Add python-antlr4 Vinicius Monego
2021-07-23 23:25 ` [bug#49207] [PATCH 4/6] gnu: Add python-cf-units Vinicius Monego
2021-07-23 23:25 ` [bug#49207] [PATCH 5/6] gnu: Add python-pyke Vinicius Monego
2021-07-23 23:25 ` [bug#49207] [PATCH 6/6] gnu: Add python-iris Vinicius Monego
2023-06-09 14:58 ` [bug#49207] [PATCH v2 1/5] gnu: Add python-imagehash Vinicius Monego
2023-06-09 14:58 ` [bug#49207] [PATCH v2 2/5] gnu: Add python-cf-units Vinicius Monego
2023-06-09 14:58 ` [bug#49207] [PATCH v2 3/5] gnu: python-dask: Propagate python-importlib-metadata Vinicius Monego
2023-06-09 14:58 ` [bug#49207] [PATCH v2 4/5] gnu: python-cartopy: Add dependencies Vinicius Monego
2023-06-09 14:58 ` Vinicius Monego [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230609145854.2581045-5-monego@posteo.net \
--to=monego@posteo.net \
--cc=49207@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.