summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-05-18 20:41:15 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-26 16:15:35 +0100
commit2ec29b93269367623a39988c3e4f62d2afb3c6b7 (patch)
tree43d873312676aafefb7bd98df7937679425b095a
parentb645c95d40d24bddae49149da3f5cf951a847668 (diff)
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
-rw-r--r--gnu/packages/astronomy.scm15
1 files 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")