gnu: python-healpy: Update to 1.18.1.

* gnu/packages/astronomy.scm (python-healpy): Update to 1.18.1.
[arguments] <test-flags>: Provide "--pyargs" option to test against
installed module.
<phases>: Remove 'disable-doctestplus, and 'pre-check.
[native-inputs]: Add python-pytest-doctestplus.

Change-Id: I4f32f7ca551d556782a545171da30f6acc6e1c2a
Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
This commit is contained in:
Sharlatan Hellseher 2025-05-19 19:41:50 +01:00 committed by Artyom V. Poptsov
parent a59535548a
commit bb5f2957e5
No known key found for this signature in database
GPG key ID: 935EBE0736DC857E

View file

@ -3882,33 +3882,25 @@ sensitivity or energy density
(define-public python-healpy
(package
(name "python-healpy")
(version "1.18.0")
(version "1.18.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "healpy" version))
(sha256
(base32 "12ajn55kjgnqadyamh6cw4q8i01nyv6isgf47lcnv2jch27zs4ka"))))
(base32 "1v7bsxz05k36cw596yyaahcx6h8blhy1qlzpwcjj5cvg4vrynnff"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
;; Disable tests requiring network access.
#~(list "-k" (string-append "not test_astropy_download_file"
" and not test_pixelweights_local_datapath"
" and not test_rotate_map_polarization_alms"))
#:phases
#~(modify-phases %standard-phases
;; XXX: It's not compatible with pytest-8, enable when newer version
;; is available.
(add-after 'unpack 'disable-doctest
(lambda _
(substitute* "pyproject.toml"
(("--doctest-plus") ""))))
(add-before 'check 'pre-check
(lambda _
(delete-file "lib/healpy/conftest.py")
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
#~(list "--pyargs" "healpy"
"-k" (string-join
;; Tests requiring network access.
(list "not test_astropy_download_file"
"test_pixelweights_local_datapath"
"test_rotate_map_polarization_alms")
" and not ")
"test")))
(native-inputs
(list nss-certs-for-test
pkg-config
@ -3916,20 +3908,20 @@ sensitivity or energy density
python-pytest
python-pytest-astropy-header
python-pytest-cython
;python-pytest-doctestplus
python-pytest-doctestplus
python-setuptools
python-setuptools-scm
python-wheel))
(inputs
(list cfitsio
healpix-cxx
libsharp))
(propagated-inputs
(list python-astropy
python-colorlog
python-matplotlib
python-numpy
python-scipy))
(inputs
(list cfitsio
healpix-cxx
libsharp))
(home-page "http://healpy.readthedocs.org/")
(synopsis "Healpix tools package for Python")
(description