~ruther/guix-local

8a07d67ce3787603e7fee8f9ea9f50370e6fe21d — Sharlatan Hellseher 1 year, 2 months ago e72b988
gnu: python-cartopy: Update to 0.24.1.

* gnu/packages/geo.scm (python-cartopy): Update to 0.24.1.
[source] <uri>: Adjust it as PyPI archive name has been changed.
[arguments] <test-flags>: Preserve the most of the tests as they passed
successfully or removed in upstream.  Utilize python-pytest-xdist by
providing "--numprocesses" option.
[propagated-inputs]: Add python-fiona, python-owslib, python-pillow, and
python-pykdtree.
[native-inputs]: Remove python-coveralls and python-pytest-cov. Add
python-setuptools-scm.

Change-Id: I91b82cfe50f569923b782162e447b11cdee45ff0
1 files changed, 25 insertions(+), 39 deletions(-)

M gnu/packages/geo.scm
M gnu/packages/geo.scm => gnu/packages/geo.scm +25 -39
@@ 1556,68 1556,54 @@ surface (i.e., gridding) with a hint of machine learning.")
(define-public python-cartopy
  (package
    (name "python-cartopy")
    (version "0.23.0")
    (version "0.24.1")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "Cartopy" version))
       (uri (pypi-uri "cartopy" version))
       (sha256
        (base32 "0xknmq73pvkm3k718zrsx8p4r83dbskwqna9v4qvmwh1ayrkf7r3"))))
        (base32 "1gf8hpjlhjsw1gfd80ghcy3k5lkkshbhlvn4vvpsfsaccgai1j81"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-flags
      '(list
        "--pyargs" "cartopy"
        ;; These tests require online data.
        "-m" "not natural_earth and not network"
        "-k"
        (string-append
         ;; These ones too but are not marked as such.
         "not test_feature_artist_draw"
         " and not test_feature_artist_draw_facecolor_list"
         " and not test_feature_artist_draw_cmap"
         " and not test_feature_artist_draw_styled_feature"
         " and not test_feature_artist_draw_styler"
         " and not test_gridliner_constrained_adjust_datalim"
         " and not test_gridliner_remove"
         " and not test_gridliner_title_adjust"
         " and 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"))
      #~(list
         "--pyargs" "cartopy"
         "--numprocesses" (number->string (parallel-job-count))
         ;; These tests require online data.
         "-m" "not natural_earth and not network"
         ;; Failed: Error: Image files did not match.
         "-k" "not test_gridliner_constrained_adjust_datalim")
      #: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 = .*") "")))))))
      #~(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-fiona     ; optional [speedups]
           python-numpy
           python-owslib    ; optional [ows]
           python-packaging
           python-pillow    ; optional [ows, plotting]
           python-pykdtree  ; optional [speedups]
           python-pyproj
           python-pyshp
           python-scipy
           python-scipy     ; optional [plotting]
           python-shapely))
    (inputs
     (list geos))
    (native-inputs
     (list python-coveralls
           python-cython
     (list python-cython
           python-pytest
           python-pytest-cov
           python-pytest-mpl
           python-pytest-xdist
           python-setuptools
           python-setuptools-scm
           python-wheel))
    (home-page "https://scitools.org.uk/cartopy/docs/latest/")
    (synopsis "Cartographic library for visualisation")