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

commit c425be78fe03e9ea1501114947b6ab9e2816625b
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Dec 12 16:06:48 2025 +0000

    gnu: python-fits-schema: Update to 0.5.6-0.ccffe04.
    
    * gnu/packages/astronomy.scm (python-fits-schema): Update to
    ccffe04a8a47f2bd0f69014caaf73d9679b89a87 commit.
    [source]: Switch to git-fetch providing compatibility with NumPy 2.
    [arguments] <phases>: Remove 'fix-setup.cfg; add 'set-version.
    [native-inputs]: Add python-setuptools-scm.
    
    Change-Id: Ib826726400fef943c69e08a2528269495e1cb481
---
 gnu/packages/astronomy.scm | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index d7a1d4c322..fad044dc8c 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4769,27 +4769,35 @@ exitinction laws found in the literature.")
 (define-public python-fits-schema
   (package
     (name "python-fits-schema")
-    (version "0.5.6")
+    ;; 0.5.6 was released in 2022, there are NumPy 2 comparability changes
+    ;; which are available on master HEAD, use the latest commit for now.
+    (properties '((commit . "ccffe04a8a47f2bd0f69014caaf73d9679b89a87")
+                  (revision . "0")))
+    (version (git-version "0.5.6"
+                          (assoc-ref properties 'revision)
+                          (assoc-ref properties 'commit)))
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "fits_schema" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/VODF/fits_schema";)
+              (commit (assoc-ref properties 'commit))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1y6an115k7x31hbb67bfp513k802c1nfz2rxy418qkf832blnqfd"))))
+        (base32 "0lj8vb3b2s7m56bs4am6856w8vdlyi4p86gj7hlkncfngsgx1f8v"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:phases
       #~(modify-phases %standard-phases
-          ;; TODO: It's removed on Git's master.
-          ;; ModuleNotFoundError: No module named 'eschool21_demo'
-          (add-after 'unpack 'fix-setup.cfg
+          (add-before 'build 'set-env-version
             (lambda _
-              (substitute* "setup.cfg"
-                (("fibonacci = eschool21_demo.__main__:main") "")))))))
+              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+                      #$(version-major+minor+point version)))))))
     (native-inputs
      (list python-pytest
-           python-setuptools))
+           python-setuptools
+           python-setuptools-scm))
     (propagated-inputs
      (list python-astropy
            python-numpy))

Reply via email to