guix_mirror_bot pushed a commit to branch master
in repository guix.
commit a2929a978459e5b1f9352a10628746faa1502e79
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Tue Feb 3 06:08:33 2026 +0100
gnu: python-pysynphot: Fix build by relaxing NumPy requirement.
* gnu/packages/astronomy.scm (python-pysynphot): Relax NumPy requirement.
[arguments]<#:phases>: Add relax-dependecies phase.
[propagated-inputs]: Remove python-numpy-1; add python-numpy.
Change-Id: Icc5ee5d54a33ff3112110f9ea6c4679ba5e53ec1
Reviewed-by: Reza Housseini <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/astronomy.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 2b85cf0493..3a8cf4af4b 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -8234,6 +8234,12 @@ memory usage, improving performance and run in parallel
with MPI.")
;; tests: 189 passed, 213 skipped, 3 xfailed
#:phases
#~(modify-phases %standard-phases
+ ;; NumPy2 should work even though not officially supported.
+ ;; See <https://github.com/spacetelescope/pysynphot/pull/164>
+ (add-after 'unpack 'relax-dependencies
+ (lambda _
+ (substitute* "setup.py"
+ (("'numpy<2'") "'numpy'"))))
(add-before 'build 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" "2.0.0")))
@@ -8248,7 +8254,7 @@ memory usage, improving performance and run in parallel
with MPI.")
(propagated-inputs
(list python-astropy
python-beautifulsoup4
- python-numpy-1
+ python-numpy
python-pytest-astropy-header
python-six))
(home-page "https://github.com/spacetelescope/pysynphot")