[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37/47: gnu: python-cartopy: Update to 0.22.0.
From: |
guix-commits |
Subject: |
37/47: gnu: python-cartopy: Update to 0.22.0. |
Date: |
Wed, 10 Jan 2024 14:53:00 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 299791f0507a86f34066581656606ad9b9ac7a3c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jan 9 15:41:33 2024 +0100
gnu: python-cartopy: Update to 0.22.0.
* gnu/packages/geo.scm (python-cartopy): Update to 0.22.0.
[build-system]: Use pyproject-build-system.
[arguments]: Use G-expression; use #:test-flags; update list of disabled
tests; add phase 'remove-endpoint.
[propagated-inputs]: Add python-packaging; remove python-pykdtree.
[native-inputs]: Add python-coveralls and python-pytest-xdist; remove
python-flufl-lock.
Change-Id: I353fff0ceade648286ef552effdc35671032c62c
---
gnu/packages/geo.scm | 66 +++++++++++++++++++++++++++++-----------------------
1 file changed, 37 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 73b7aa3d11..cfb457973d 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2017, 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
-;;; Copyright © 2018, 2023 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2018, 2023, 2024 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
;;; Copyright © 2018, 2019, 2020, 2021 Julien Lepiller <julien@lepiller.eu>
@@ -1290,40 +1290,46 @@ utilities for data translation and processing.")
(define-public python-cartopy
(package
(name "python-cartopy")
- ;; This is a post-release fix that adds build_ext to setup.py.
- (version "0.21.1")
+ (version "0.22.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Cartopy" version))
(sha256
- (base32 "02i5rjhvrsi3vgj8kfsdx77g1xl59jh2a671qqqj4n682abn9mc9"))))
- (build-system python-build-system)
+ (base32 "0jdv92az0b7qxdvalh29kasw3knsl570cz7q3vql67ck400zj05k"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "-m" "pytest" "--pyargs" "cartopy"
- ;; These tests require online data.
- "-m" "not natural_earth and not network"
- "-k"
- (string-append
- ;; This one too but it's not marked as such.
- "not test_gridliner_labels_bbox_style"
- ;; Those tests fail with proj 9.2.0
- ;; https://github.com/SciTools/cartopy/issues/2145
- " and not test_epsg"
- " and not test_default"
- " and not test_eccentric_globe"
- " and not test_ellipsoid_transform"
- " and not test_eccentric_globe"))))))))
+ (list
+ #:test-flags
+ '(list
+ "--pyargs" "cartopy"
+ ;; These tests require online data.
+ "-m" "not natural_earth and not network"
+ "-k"
+ (string-append
+ ;; This one too but it's not marked as such.
+ "not test_gridliner_labels_bbox_style"
+ ;; Accuracy problems
+ " and not test_single_spole"
+ " and not test_single_npole"
+ ;; Incomplete shapefile definition
+ " and not test_gshhs"
+ " and not test_geometry"
+ " and not test_record"
+ " and not test_bounds"))
+ #:phases
+ '(modify-phases %standard-phases
+ ;; We don't want to create an entrypoint for
+ ;; tools/cartopy_feature_download.py, because that file is not
+ ;; installed.
+ (add-after 'unpack 'remove-endpoint
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("^feature_download = .*") "")))))))
(propagated-inputs
(list python-matplotlib
python-numpy
- python-pykdtree
+ python-packaging
python-pyproj
python-pyshp
python-scipy
@@ -1331,10 +1337,12 @@ utilities for data translation and processing.")
(inputs
(list geos))
(native-inputs
- (list python-cython
- python-flufl-lock
+ (list python-coveralls
+ python-cython
python-pytest
- python-pytest-mpl))
+ python-pytest-cov
+ python-pytest-mpl
+ python-pytest-xdist))
(home-page "https://scitools.org.uk/cartopy/docs/latest/")
(synopsis "Cartographic library for visualisation")
(description
- 16/47: gnu: python-pynndescent: Update to 0.5.11., (continued)
- 16/47: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/10
- 17/47: gnu: python-umap-learn: Update to 0.5.5., guix-commits, 2024/01/10
- 18/47: gnu: Add python-cppy., guix-commits, 2024/01/10
- 12/47: gnu: python-afdko: Disable failing test., guix-commits, 2024/01/10
- 19/47: gnu: python-kiwisolver: Update to 1.4.5., guix-commits, 2024/01/10
- 26/47: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/10
- 28/47: gnu: tadbit: Add missing input., guix-commits, 2024/01/10
- 23/47: gnu: Add python-pytest-nunit., guix-commits, 2024/01/10
- 30/47: gnu: python-pegasusio: Disable tests., guix-commits, 2024/01/10
- 31/47: gnu: python-reportlab: Update to 4.0.8., guix-commits, 2024/01/10
- 37/47: gnu: python-cartopy: Update to 0.22.0.,
guix-commits <=
- 03/47: gnu: python-doit: Update to 0.36.0., guix-commits, 2024/01/10
- 06/47: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/10
- 09/47: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/10
- 04/47: gnu: Add python-pyproject-metadata-0.7., guix-commits, 2024/01/10
- 05/47: gnu: Add python-pydevtool., guix-commits, 2024/01/10
- 08/47: gnu: python-tifffile: Update to 2023.12.9., guix-commits, 2024/01/10
- 13/47: gnu: python-pypng: Update to 0.20220715.0., guix-commits, 2024/01/10
- 14/47: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/10
- 20/47: gnu: Add python-contourpy., guix-commits, 2024/01/10
- 21/47: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/10