all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 49207@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#49207] [PATCH 4/6] gnu: Add python-cf-units.
Date: Fri, 23 Jul 2021 23:25:27 +0000	[thread overview]
Message-ID: <20210723232529.23745-5-monego@posteo.net> (raw)
In-Reply-To: <20210723232529.23745-1-monego@posteo.net>

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

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 37be78edbf..314165062c 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -58,6 +58,7 @@
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages boost)
+  #:use-module (gnu packages c)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages curl)
@@ -898,6 +899,52 @@ Shapely capabilities
 @end itemize")
     (license license:lgpl3+)))
 
+(define-public python-cf-units
+  (package
+    (name "python-cf-units")
+    (version "2.1.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "cf-units" version))
+       (sha256
+        (base32 "0cswphn1cw0qyzglcn4xinr3pfhvbsdyll4hnb702fsfxv9q2cyl"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'disable-doctest
+           (lambda _
+             ;; Two doctests fail.
+             (substitute* "setup.cfg" (("--doctest-modules") ""))))
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "pytest" "--pyargs" "cf_units" "-ra"
+                       ;; This test failed.
+                       "-k" "not test_masked_ndarray")))))))
+    (native-inputs
+     `(("python-coveralls" ,python-coveralls)
+       ("python-cython" ,python-cython)
+       ("python-jinja2" ,python-jinja2)
+       ("python-pep8" ,python-pep8)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-runner" ,python-pytest-runner)))
+    (inputs
+     `(("udunits" ,udunits)))
+    (propagated-inputs
+     `(("python-antlr4" ,python-antlr4)
+       ("python-cftime" ,python-cftime)
+       ("python-numpy" ,python-numpy)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/SciTools/cf-units")
+    (synopsis "Units of measure as required by the CF metadata conventions")
+    (description "This package provides units of measure as required by the
+Climate and Forecast (CF) metadata conventions.")
+    (license license:lgpl3)))
+
 (define-public postgis
   (package
     (name "postgis")
-- 
2.30.2





  parent reply	other threads:[~2021-07-23 23:27 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   ` Vinicius Monego [this message]
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   ` [bug#49207] [PATCH v2 5/5] gnu: Add python-scitools-iris Vinicius Monego

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=20210723232529.23745-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.