~ruther/guix-local

2a45091b75855823bc1e71b1a507c432211aca70 — Sharlatan Hellseher 2 months ago b5a17d7
gnu: python-drizzlepac: Update to 3.10.0-0.e01563c.

* gnu/packages/astronomy.scm (python-drizzlepac): Update to
e01563c48206f02f4cd4c525732764b9b827b3c4 commit.
[source]: Switch to git-fetch.
[phases]{set-version}: New phase.
[propagated-inputs]: Remove python-markupsafe, python-pypdf2,
python-regions, and python-tables; add python-pypdf and python-stregion.
[native-inputs]: Remove python-astropy and python-wheel; add
python-markupsafe.

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

M gnu/packages/astronomy.scm
M gnu/packages/astronomy.scm => gnu/packages/astronomy.scm +26 -16
@@ 4430,32 4430,44 @@ code to be greatly simplified.")
(define-public python-drizzlepac
  (package
    (name "python-drizzlepac")
    (version "3.7.1") ; higher versions require NumPy 2+
    ;; 3.10.0 requires astrocut<0.9.
    (properties '((commit . "e01563c48206f02f4cd4c525732764b9b827b3c4")
                  (revision . "0")))
    (version (git-version "3.10.0"
                          (assoc-ref properties 'revision)
                          (assoc-ref properties 'commit)))
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "drizzlepac" version))
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/spacetelescope/drizzlepac")
              (commit (assoc-ref properties 'commit))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0vb1sxq4hjh9p7gi320k7nwmm7f0dm4i9dn5wl56h30n0m16lp37"))))
        (base32 "1zcny9mkm7w4mjnrglhq28i59x7a2yj38x773qcl7qsvxd0cjs5b"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      ;; TODO: Tests fail to load with error: E ModuleNotFoundError: No module
      ;; named 'stsci.tools'
      #:tests? #f
      ;; TODO: Sanity check phase fails a lot on mismatched versions or failed
      ;; to load "stsci.tools" module.
      #:phases #~(modify-phases %standard-phases
                   (delete 'sanity-check))))
      #:phases
      #~(modify-phases %standard-phases
          ;; TODO: Sanity check phase fails a lot on mismatched versions or
          ;; failed to load "stsci.tools" module.
          (delete 'sanity-check)
          (add-before 'build 'set-version
            (lambda _
              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
                      #$(version-major+minor+point version)))))))
    (native-inputs
     (list python-astropy
           python-ci-watson
     (list python-ci-watson
           python-crds-minimal
           python-markupsafe
           python-pytest
           python-pytest-remotedata
           python-setuptools
           python-setuptools-scm
           python-wheel))
           python-setuptools-scm))
    (propagated-inputs
     (list python-astrocut
           python-astropy


@@ 4463,13 4475,12 @@ code to be greatly simplified.")
           python-bokeh
           python-fitsblender
           python-lxml
           python-markupsafe
           python-matplotlib
           python-numpy
           python-pandas
           python-photutils
           python-pypdf2
           python-regions
           python-pypdf
           python-stregion
           python-requests
           python-scikit-image
           python-scikit-learn


@@ 4482,7 4493,6 @@ code to be greatly simplified.")
           python-stsci-stimage
           python-stsci-tools
           python-stwcs
           python-tables
           python-tweakwcs))
    (home-page "https://drizzlepac.readthedocs.io/")
    (synopsis "AstroDrizzle for HST images")