guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 4741d328b869465f10f62bcfd2ebd5c7ea948457
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sun May 18 20:41:15 2025 +0100

    gnu: python-fitsio: Update to 1.2.6.
    
    * gnu/packages/astronomy.scm (python-fitsio): Update to 1.2.6.
    [arguments] <test-flags>: Provide an option to test against installed
    package.
    <phases>: Remove 'build-extensions.
    
    Change-Id: I8ad0f2555741b55b30d364dbffe88b1d1ab04452
    Signed-off-by: Artyom V. Poptsov <poptsov.art...@gmail.com>
---
 gnu/packages/astronomy.scm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 1626594085..b301c5d892 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3362,13 +3362,13 @@ all the input image headers.")
 (define-public python-fitsio
   (package
     (name "python-fitsio")
-    (version "1.2.5")
+    (version "1.2.6")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "fitsio" version))
        (sha256
-        (base32 "1mnhzljaqjvslqxp4wblram7g9zbn6a29ri0phcrw8l2ry4qc7h0"))
+        (base32 "1brkkfqgfwbnl1si7hppripcixmsfjs5lpbn18yrwxziafycvc1k"))
        (modules '((guix build utils)))
        (snippet
         ;; Remove the bundled cfitsio. When update the package check the
@@ -3380,6 +3380,8 @@ all the input image headers.")
     (build-system pyproject-build-system)
     (arguments
      (list
+      #:test-flags
+      #~(list "--pyargs" "fitsio")
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'build 'set-env
@@ -3390,16 +3392,15 @@ all the input image headers.")
                        #$(this-package-input "cfitsio") "/include"))
               (setenv "FITSIO_SYSTEM_FITSIO_LIBDIR"
                       (string-append
-                       #$(this-package-input "cfitsio") "/lib"))))
-          (add-before 'check 'build-extensions
-            (lambda _
-              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+                       #$(this-package-input "cfitsio") "/lib")))))))
     (native-inputs
      (list python-pytest
            python-setuptools
            python-wheel))
     (inputs
-     (list curl cfitsio zlib))
+     (list curl
+           cfitsio
+           zlib))
     (propagated-inputs
      (list python-numpy))
     (home-page "https://github.com/esheldon/fitsio";)

Reply via email to