From: Vinicius Monego <monego@posteo.net>
To: 49207@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#49207] [PATCH v2 2/5] gnu: Add python-cf-units.
Date: Fri, 9 Jun 2023 14:58:51 +0000 [thread overview]
Message-ID: <20230609145854.2581045-2-monego@posteo.net> (raw)
In-Reply-To: <20230609145854.2581045-1-monego@posteo.net>
* gnu/packages/geo.scm (python-cf-units): New variable.
---
gnu/packages/geo.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 25805fe2e5..2c15df18cc 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -1380,6 +1380,52 @@ (define-public postgis
;; doc
license:cc-by-sa3.0))))
+(define-public python-cf-units
+ (package
+ (name "python-cf-units")
+ (version "3.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "cf-units" version))
+ (sha256
+ (base32
+ "0kq76p13ndm8033m0jfbfryhlk3c0iwy1d92sg1f8zqmwi0g3ac8"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; FIXME: 'ImportError: cannot import name '_udunits2' from partially
+ ;; initialized module 'cf_units' (most likely due to a circular import)'.
+ ;; Importing works after the package is built.
+ (list #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'udunits-path
+ (lambda _
+ (setenv "UDUNITS2_XML_PATH"
+ (string-append
+ #$(this-package-input "udunits")
+ "/share/udunits/udunits2.xml"))))
+ ;; cf-units has a hard dependency on antlr4 4.7.2 and
+ ;; doesn't work with newer versions. Upstream is trying
+ ;; to change it or make antlr4 optional, see
+ ;; https://github.com/SciTools/cf-units/issues/313
+ (delete 'sanity-check))))
+ (propagated-inputs (list java-antlr4-runtime-python
+ python-cftime
+ python-jinja2
+ python-numpy))
+ (inputs (list udunits))
+ (native-inputs (list python-codecov
+ python-cython
+ python-jinja2
+ python-pytest
+ python-pytest-cov
+ python-setuptools-scm))
+ (home-page "https://github.com/SciTools/cf-units")
+ (synopsis "Units of measure as required by the CF metadata conventions")
+ (description "This package provids units of measure as required by the
+ Climate and Forecast (CF) metadata conventions.")
+ (license license:lgpl3+)))
+
(define-public tegola
(package
(name "tegola")
--
2.34.1
next prev parent reply other threads:[~2023-06-09 15:01 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 ` Vinicius Monego [this message]
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
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=20230609145854.2581045-2-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 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).