mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-sunkit-image: Update to 0.6.0.
* gnu/packages/astronomy.scm (python-sunkit-image): Update to 0.6.0. [arguments] <tests?>: Upstream resolved the issue, enable them. <test-flags>: Skip just one failing test, add "--numprocesses" option, upstream support parallel tests. [native-inputs]: Remove python-astroscrappy, python-beautifulsoup4, python-drms, python-importlib-resources, python-setuptools-scm, and python-zeep; add python-pytest, python-pytest-xdist, python-setuptools, python-setuptools-scm-next, and python-wheel. Change-Id: Ib95857c434946dd6633874b20113f931aa7bc3b0
This commit is contained in:
parent
9c136c2755
commit
1b914f5b96
1 changed files with 16 additions and 24 deletions
|
@ -3596,35 +3596,37 @@ instruments.")
|
||||||
(define-public python-sunkit-image
|
(define-public python-sunkit-image
|
||||||
(package
|
(package
|
||||||
(name "python-sunkit-image")
|
(name "python-sunkit-image")
|
||||||
(version "0.5.1")
|
(version "0.6.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "sunkit_image" version))
|
(uri (pypi-uri "sunkit_image" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1wzii7dy0yb2lx0k8m3iak5vxc0wbybj5cdkvrk93sr14k9crqds"))))
|
(base32 "0gdbg3g8jxcgkwd34ls6342zj90m6ncas4f655q9dh79lqy7hhm8"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
;; XXX: Disable as not compatible with Pytest 8+, check with upstream.
|
|
||||||
;;
|
|
||||||
;; pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no
|
|
||||||
;; effect
|
|
||||||
;;
|
|
||||||
;; See docs: <https://docs.pytest.org/en/stable/deprecations.html>.
|
|
||||||
#:tests? #f
|
|
||||||
;; XXX: Check with upstram: assert False.
|
|
||||||
#:test-flags
|
#:test-flags
|
||||||
#~(list "-k" (string-append
|
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||||
"not test_fnrgf"
|
;; One test fails with assertion, probably in NumPy array
|
||||||
" and not test_calculate_solar_rotate_shift"
|
;; precision calculation: np.allclose and
|
||||||
" and not test_mapsequence_solar_derotate"))
|
;; sunpy.map.mapbase.GenericMap are not matched.
|
||||||
|
"--deselect=sunkit_image/tests/test_radial.py::test_fnrgf")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'check 'set-home
|
(add-before 'check 'set-home
|
||||||
(lambda _
|
(lambda _
|
||||||
;; For tests: Permission denied: '/homeless-shelter'
|
;; For tests: Permission denied: '/homeless-shelter'
|
||||||
(setenv "HOME" "/tmp"))))))
|
(setenv "HOME" "/tmp"))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-dask
|
||||||
|
python-pytest
|
||||||
|
python-pytest-astropy
|
||||||
|
python-pytest-mpl
|
||||||
|
python-pytest-xdist
|
||||||
|
python-setuptools
|
||||||
|
python-setuptools-scm-next
|
||||||
|
python-wheel))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-astropy
|
(list python-astropy
|
||||||
python-matplotlib
|
python-matplotlib
|
||||||
|
@ -3632,16 +3634,6 @@ instruments.")
|
||||||
python-scikit-image
|
python-scikit-image
|
||||||
python-scipy
|
python-scipy
|
||||||
python-sunpy))
|
python-sunpy))
|
||||||
(native-inputs
|
|
||||||
(list python-astroscrappy
|
|
||||||
python-beautifulsoup4
|
|
||||||
python-dask
|
|
||||||
python-drms
|
|
||||||
python-importlib-resources
|
|
||||||
python-pytest-astropy
|
|
||||||
python-pytest-mpl
|
|
||||||
python-setuptools-scm
|
|
||||||
python-zeep))
|
|
||||||
(home-page "https://github.com/sunpy/sunkit-image/")
|
(home-page "https://github.com/sunpy/sunkit-image/")
|
||||||
(synopsis "Solar Physics image processing toolbox")
|
(synopsis "Solar Physics image processing toolbox")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue