~ruther/guix-local

9748ba26cd207c953aa305cfd982b8b9e27ea341 — Sharlatan Hellseher 3 months ago 6ee29be
gnu: python-stcal: Adjust relax-requirments phase.

* gnu/packages/astronomy.scm (python-stcal):
[arguments] <phases>: Remove 'patch-slope-fitter; {relax-requirments}
remove relaxation for SciPy.
[native-inputs]: Remove python-wheel.

Change-Id: Ic886fe9f8d7a809f4f775f0db314b074124696ff
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 1 insertions(+), 12 deletions(-)

M gnu/packages/astronomy.scm
M gnu/packages/astronomy.scm => gnu/packages/astronomy.scm +1 -12
@@ 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