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
This commit is contained in:
parent
3118d95b56
commit
e833d3abf8
1 changed files with 37 additions and 29 deletions
|
@ -3,7 +3,7 @@
|
||||||
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
|
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
|
||||||
;;; Copyright © 2017, 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
|
;;; Copyright © 2017, 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
|
||||||
;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; 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, 2019 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
|
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
|
||||||
;;; Copyright © 2018, 2019, 2020, 2021 Julien Lepiller <julien@lepiller.eu>
|
;;; Copyright © 2018, 2019, 2020, 2021 Julien Lepiller <julien@lepiller.eu>
|
||||||
|
@ -1290,40 +1290,46 @@ utilities for data translation and processing.")
|
||||||
(define-public python-cartopy
|
(define-public python-cartopy
|
||||||
(package
|
(package
|
||||||
(name "python-cartopy")
|
(name "python-cartopy")
|
||||||
;; This is a post-release fix that adds build_ext to setup.py.
|
(version "0.22.0")
|
||||||
(version "0.21.1")
|
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "Cartopy" version))
|
(uri (pypi-uri "Cartopy" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "02i5rjhvrsi3vgj8kfsdx77g1xl59jh2a671qqqj4n682abn9mc9"))))
|
(base32 "0jdv92az0b7qxdvalh29kasw3knsl570cz7q3vql67ck400zj05k"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(replace 'check
|
'(list
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
"--pyargs" "cartopy"
|
||||||
(when tests?
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(invoke "python" "-m" "pytest" "--pyargs" "cartopy"
|
|
||||||
;; These tests require online data.
|
;; These tests require online data.
|
||||||
"-m" "not natural_earth and not network"
|
"-m" "not natural_earth and not network"
|
||||||
"-k"
|
"-k"
|
||||||
(string-append
|
(string-append
|
||||||
;; This one too but it's not marked as such.
|
;; This one too but it's not marked as such.
|
||||||
"not test_gridliner_labels_bbox_style"
|
"not test_gridliner_labels_bbox_style"
|
||||||
;; Those tests fail with proj 9.2.0
|
;; Accuracy problems
|
||||||
;; https://github.com/SciTools/cartopy/issues/2145
|
" and not test_single_spole"
|
||||||
" and not test_epsg"
|
" and not test_single_npole"
|
||||||
" and not test_default"
|
;; Incomplete shapefile definition
|
||||||
" and not test_eccentric_globe"
|
" and not test_gshhs"
|
||||||
" and not test_ellipsoid_transform"
|
" and not test_geometry"
|
||||||
" and not test_eccentric_globe"))))))))
|
" 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
|
(propagated-inputs
|
||||||
(list python-matplotlib
|
(list python-matplotlib
|
||||||
python-numpy
|
python-numpy
|
||||||
python-pykdtree
|
python-packaging
|
||||||
python-pyproj
|
python-pyproj
|
||||||
python-pyshp
|
python-pyshp
|
||||||
python-scipy
|
python-scipy
|
||||||
|
@ -1331,10 +1337,12 @@ utilities for data translation and processing.")
|
||||||
(inputs
|
(inputs
|
||||||
(list geos))
|
(list geos))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cython
|
(list python-coveralls
|
||||||
python-flufl-lock
|
python-cython
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-mpl))
|
python-pytest-cov
|
||||||
|
python-pytest-mpl
|
||||||
|
python-pytest-xdist))
|
||||||
(home-page "https://scitools.org.uk/cartopy/docs/latest/")
|
(home-page "https://scitools.org.uk/cartopy/docs/latest/")
|
||||||
(synopsis "Cartographic library for visualisation")
|
(synopsis "Cartographic library for visualisation")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue