~ruther/guix-local

0b23274127601b24e2597eacaa8d3a90942a05bd — Sharlatan Hellseher 3 months ago 4675385
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
1 files changed, 14 insertions(+), 5 deletions(-)

M gnu/packages/astronomy.scm
M gnu/packages/astronomy.scm => gnu/packages/astronomy.scm +14 -5
@@ 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:
                ;; <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