From 0b23274127601b24e2597eacaa8d3a90942a05bd Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 14 Nov 2025 22:14:51 +0000 Subject: [PATCH] gnu: python-stwcs: Update to 1.7.5. * gnu/packages/astronomy.scm (python-stwcs): Update to 1.7.5. [arguments] : 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 6c88c81be02b24d4dd738feff985644b2f0daad0..da796bbcc0f035a0235c9a466c09d287909e8113 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -9120,16 +9120,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 @@ -9167,13 +9168,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: + ;; . + (("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