From 9748ba26cd207c953aa305cfd982b8b9e27ea341 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 15 Dec 2025 11:23:23 +0000 Subject: [PATCH] gnu: python-stcal: Adjust relax-requirments phase. * gnu/packages/astronomy.scm (python-stcal): [arguments] : Remove 'patch-slope-fitter; {relax-requirments} remove relaxation for SciPy. [native-inputs]: Remove python-wheel. Change-Id: Ic886fe9f8d7a809f4f775f0db314b074124696ff Signed-off-by: Rutherther --- gnu/packages/astronomy.scm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 8b5d17a49969c04ca42a10593b6e7b1c79ba5e05..3758d630e8e5d28e6ec6d36192fca1ec7308e467 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -9464,19 +9464,9 @@ and CAS statistics), as well as fitting 2D Sérsic profiles.") "tests") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'patch-slope-fitter - (lambda _ - (substitute* "src/stcal/ramp_fitting/src/slope_fitter.c" - ;; It's failing to build, it looks like Guix's NumPy does not - ;; contain the variable: error: ‘NPY_NTYPES_LEGACY’ undeclared - ;; (first use in this function) - ((".*NPY_NTYPES_LEGACY.*") "")))) (add-before 'build 'relax-requirements (lambda _ (substitute* "pyproject.toml" - ;; Relax some requirements as all tests passed successfully. - ;; scipy>=1.14.1 - (("1.14.1") "1.12.0") ;; XXX: Can't detect opencv-python version. The input opencv ;; might not set the version correctly. ((".*opencv-python-headless.*") ""))))))) @@ -9487,8 +9477,7 @@ and CAS statistics), as well as fitting 2D Sérsic profiles.") python-pytest-xdist python-pytest-doctestplus python-setuptools - python-setuptools-scm - python-wheel)) + python-setuptools-scm)) (propagated-inputs (list opencv ;Provides OpenCV-Python python-asdf