guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 0bd887c5b9d3584401d701589f3a56d16b37f5a1
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Jan 3 23:28:26 2026 +0000

    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
---
 gnu/packages/astronomy.scm | 42 ++++++++++++++++++++++++++----------------
 1 file changed, 26 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 6abffa0d2e..6155d4f492 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -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")

Reply via email to