unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 63623@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#63623] [PATCH 4/4] gnu: Add python-metpy.
Date: Sun, 21 May 2023 05:37:26 +0000	[thread overview]
Message-ID: <20230521053726.1507055-4-monego@posteo.net> (raw)
In-Reply-To: <20230521053726.1507055-1-monego@posteo.net>

* gnu/packages/geo.scm (python-metpy): New variable.
---
 gnu/packages/geo.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 345f9dfcf5..df898e462a 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -1483,6 +1483,57 @@ (define-public imposm3
                license:bsd-2
                license:bsd-3))))
 
+(define-public python-metpy
+  (package
+    (name "python-metpy")
+    (version "1.5.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "MetPy" version))
+              (sha256
+               (base32
+                "0g9m8qb920mvi0kqw7vbagj08xvv96zj6gjyc7dawlvh15vb55qq"))))
+    (build-system pyproject-build-system)
+    (arguments
+     ;; Too many of the tests in the files below require online data.
+     (list
+      #:test-flags
+      #~(list "--ignore" "tests/io/test_nexrad.py"
+              "--ignore" "tests/plots/test_declarative.py"
+              "--ignore" "tests/io/test_gempak.py"
+              "--ignore" "tests/io/test_gini.py"
+              "--ignore" "tests/io/test_metar.py"
+              "--ignore" "tests/io/test_station_data.py"
+              "--ignore" "tests/interpolate/test_grid.py"
+              "--ignore" "tests/interpolate/test_points.py"
+              "--ignore" "tests/test_xarray.py"
+              "--ignore" "tests/calc/test_indices.py"
+              "--ignore" "tests/calc/test_kinematics.py"
+              "-k" (string-append       ; more tests that require online data
+                    "not test_parse_grid_arguments_xarray"
+                    " and not test_absolute_momentum_xarray_units_attr"
+                    " and not test_zoom_xarray"
+                    " and not test_parse_wpc_surface_bulletin"
+                    " and not test_add_timestamp_xarray"
+                    " and not test_parse_wpc_surface_bulletin_highres"))))
+    (propagated-inputs (list python-importlib-resources
+                             python-matplotlib
+                             python-numpy
+                             python-pandas
+                             python-pint
+                             python-pooch
+                             python-pyproj
+                             python-scipy
+                             python-traitlets
+                             python-xarray))
+    (native-inputs (list python-cartopy python-netcdf4 python-pytest
+                         python-pytest-mpl python-shapely))
+    (home-page "https://github.com/Unidata/MetPy")
+    (synopsis "Collection of tools to deal with weather data")
+    (description "MetPy is a collection of tools in Python for reading,
+visualizing and performing calculations with weather data.")
+    (license license:bsd-3)))
+
 (define-public libosmium
   (package
     (name "libosmium")
-- 
2.34.1





  parent reply	other threads:[~2023-05-21  5:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-21  5:35 [bug#63623] [PATCH 0/4] Add MetPy Vinicius Monego
2023-05-21  5:37 ` [bug#63623] [PATCH 1/4] gnu: python-sparse: Fix build Vinicius Monego
2023-05-21  5:37   ` [bug#63623] [PATCH 2/4] gnu: python-sparse: Update to 0.14.0 Vinicius Monego
2023-05-21  5:37   ` [bug#63623] [PATCH 3/4] gnu: python-pint: Fix build Vinicius Monego
2023-05-21  5:37   ` Vinicius Monego [this message]
2023-09-04  3:22 ` bug#63623: [PATCH 0/4] Add MetPy Maxim Cournoyer

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230521053726.1507055-4-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=63623@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).