guix_mirror_bot pushed a commit to branch astro-updates in repository guix.
commit d34d362e9d1866db3aeabdd1d2e654a74fa3df15 Author: Sharlatan Hellseher <[email protected]> AuthorDate: Fri Nov 14 22:14:51 2025 +0000 gnu: python-stwcs: Update to 1.7.5. * gnu/packages/astronomy.scm (python-stwcs): Update to 1.7.5. [arguments] <phases>: Add 'relax-requirements. [native-inputs]: Remove python-wheel. Change-Id: I06bdb9ec441933a9eef81d9c8256d080fb1276bc --- gnu/packages/astronomy.scm | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index f5e3b11ebd..6701ac332c 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -9408,16 +9408,17 @@ packages for HST.") (define-public python-stwcs (package (name "python-stwcs") - (version "1.7.3") ; any newer version requires NumPy 2+ + (version "1.7.5") (source (origin (method url-fetch) (uri (pypi-uri "stwcs" version)) (sha256 - (base32 "12114hx27mgwcwcyz7lghm78g6pbg8j40189lcfi22zsk47fxv11")))) + (base32 "04s5wlw1yvgyrz9ax0akfvikkpfyvfy598rap37jqjy35lgpqmlb")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 18 passed, 34 deselected, 1 warning #:test-flags #~(list "-k" (string-join ;; XXX: Test requiring network access to download data @@ -9455,13 +9456,21 @@ packages for HST.") "test_update_legacy_file" "test_update_stis_asn" "test_update_waiver_wfpc2") - " and not ")))) + " and not ")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + ;; XXX: Build and check phases passed just fine, it looks like + ;; a blind pin to 2+ version, see: + ;; <https://github.com/spacetelescope/stwcs/releases/tag/1.7.4>. + (("numpy>=2.0") "numpy"))))))) (native-inputs (list nss-certs-for-test python-pytest python-setuptools - python-setuptools-scm - python-wheel)) + python-setuptools-scm)) (propagated-inputs (list python-astropy python-lxml
