gnu: python-astropy-healpix: Update to 1.1.2.

* gnu/packages/astronomy.scm (python-astropy-healpix): Update to 1.1.2.
[arguments] <phases>: Remove 'writable-compiler
'prepare-test-environment and use custom 'check; add
'relax-requirements.
[native-inputs]: Add python-setuptools.

Change-Id: If8705cb47dc1f2f15b11e31b1c08688c9b991ebe
This commit is contained in:
Sharlatan Hellseher 2025-02-17 14:21:00 +00:00
parent 6d6bcb631d
commit f59a0dd715
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3801,30 +3801,33 @@ astronomy and astrophysics.")
(define-public python-astropy-healpix (define-public python-astropy-healpix
(package (package
(name "python-astropy-healpix") (name "python-astropy-healpix")
(version "1.0.3") (version "1.1.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "astropy_healpix" version)) (uri (pypi-uri "astropy_healpix" version))
(sha256 (sha256
(base32 "0ilpwwvdnd4nchivwnbiy1hl07hd2mdg4wb90r2p05kvr5z2lpfy")))) (base32 "1r362081aj5jqxshcxw0bpzn4qvqnra52k94ghskpv1n5bqisrq3"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
;; This file is opened in both install and check phases. (add-after 'unpack 'relax-requirements
(add-before 'install 'writable-compiler
(lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
(add-before 'check 'prepare-test-environment
(lambda _ (lambda _
;; Extensions have to be rebuilt before running the tests. (substitute* "setup.cfg"
(invoke "python" "setup.py" "build_ext" "--inplace") ;; numpy>=1.25
(make-file-writable "astropy_healpix/_compiler.c")))))) ((">=1.25") ">=1.24"))))
(replace 'check
(lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
(with-directory-excursion #$output
(apply invoke "pytest" "-vv" test-flags))))))))
(native-inputs (native-inputs
(list python-extension-helpers (list python-extension-helpers
python-hypothesis python-hypothesis
python-pytest-astropy python-pytest-astropy
python-setuptools
python-setuptools-scm python-setuptools-scm
python-wheel)) python-wheel))
(propagated-inputs (propagated-inputs