mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: python-metpy: Update to 1.6.0.
* gnu/packages/geo.scm (python-metpy): Update to 1.6.0. [arguments]: Add phases 'fix-version-check and 'hide-imp-deprecation-warnings. [native-inputs]: Add python-packaging; remove python-shapely and python-cartopy. Change-Id: I4a46a5e60b1904699475608146f2a09aefc07624
This commit is contained in:
parent
0c6db478ec
commit
186aa138a6
1 changed files with 21 additions and 5 deletions
|
@ -1493,13 +1493,13 @@ (define-public imposm3
|
||||||
(define-public python-metpy
|
(define-public python-metpy
|
||||||
(package
|
(package
|
||||||
(name "python-metpy")
|
(name "python-metpy")
|
||||||
(version "1.5.1")
|
(version "1.6.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "MetPy" version))
|
(uri (pypi-uri "MetPy" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1is6rradl97k04hf27dhzla4y4j98hibran3rbz6xh226q1r9vmb"))))
|
"125nb1bmkqpdf19fq0mbbgzdjczn46lr9yqi7zgn6k62dzjm1gm7"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; Too many of the tests in the files below require online data.
|
;; Too many of the tests in the files below require online data.
|
||||||
|
@ -1522,7 +1522,23 @@ (define-public python-metpy
|
||||||
" and not test_zoom_xarray"
|
" and not test_zoom_xarray"
|
||||||
" and not test_parse_wpc_surface_bulletin"
|
" and not test_parse_wpc_surface_bulletin"
|
||||||
" and not test_add_timestamp_xarray"
|
" and not test_add_timestamp_xarray"
|
||||||
" and not test_parse_wpc_surface_bulletin_highres"))))
|
" and not test_parse_wpc_surface_bulletin_highres"))
|
||||||
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-version-check
|
||||||
|
(lambda _
|
||||||
|
(substitute* "src/metpy/testing.py"
|
||||||
|
(("^( +)match = pattern.*" m indent)
|
||||||
|
(string-append indent "\
|
||||||
|
version_spec = re.sub('[()]', '', version_spec)\n" m)))))
|
||||||
|
;; The deprecation warning from python-future's use of imp breaks the
|
||||||
|
;; tests.
|
||||||
|
(add-after 'unpack 'hide-imp-deprecation-warnings
|
||||||
|
(lambda _
|
||||||
|
(substitute* "pyproject.toml"
|
||||||
|
(("\"ignore:numpy.ndarray size changed:RuntimeWarning\"," m)
|
||||||
|
(string-append m "
|
||||||
|
\"ignore:the imp module is deprecated\","))))))))
|
||||||
(propagated-inputs (list python-importlib-resources
|
(propagated-inputs (list python-importlib-resources
|
||||||
python-matplotlib
|
python-matplotlib
|
||||||
python-numpy
|
python-numpy
|
||||||
|
@ -1533,8 +1549,8 @@ (define-public python-metpy
|
||||||
python-scipy
|
python-scipy
|
||||||
python-traitlets
|
python-traitlets
|
||||||
python-xarray))
|
python-xarray))
|
||||||
(native-inputs (list python-cartopy python-netcdf4 python-pytest
|
(native-inputs (list python-netcdf4 python-packaging python-pytest
|
||||||
python-pytest-mpl python-shapely))
|
python-pytest-mpl))
|
||||||
(home-page "https://github.com/Unidata/MetPy")
|
(home-page "https://github.com/Unidata/MetPy")
|
||||||
(synopsis "Collection of tools to deal with weather data")
|
(synopsis "Collection of tools to deal with weather data")
|
||||||
(description "MetPy is a collection of tools in Python for reading,
|
(description "MetPy is a collection of tools in Python for reading,
|
||||||
|
|
Loading…
Reference in a new issue