[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/33: gnu: python-fitsio: Update to 1.2.0.
From: |
guix-commits |
Subject: |
18/33: gnu: python-fitsio: Update to 1.2.0. |
Date: |
Wed, 27 Sep 2023 07:09:15 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 815d0c00d5c61204788970344df16a603859075c
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Sep 7 23:32:18 2023 +0100
gnu: python-fitsio: Update to 1.2.0.
* gnu/packages/astronomy.scm (python-fitsio): Update to 1.2.0.
[arguments]{phases}: Swap 'unbundle-cfitsio to 'set-env as there is
support for system CFitsio library provided.
[inputs]: Add zlib.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/astronomy.scm | 33 +++++++++++++++------------------
1 file changed, 15 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index cf524a2f6c..2064a05c64 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -534,45 +534,42 @@ mining in astronomy.")
(define-public python-fitsio
(package
(name "python-fitsio")
- (version "1.1.10")
+ (version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fitsio" version))
(sha256
- (base32 "0dv2vjj8qn3rq5sr99x5yjjch5h867c8q7zh73i67dzdsk7ix0jf"))
+ (base32 "04fbg1ffj7qrlzw50xzzkfnlk6qjjqq96j0im7phprmwb1rbvzzh"))
(modules '((guix build utils)))
(snippet
- ;; Remove the bundled cfitsio
+ ;; Remove the bundled cfitsio. When update the package check the
+ ;; current bundled version.
#~(begin
- (delete-file-recursively "cfitsio3490")
+ (delete-file-recursively "cfitsio-4.2.0")
(substitute* "MANIFEST.in"
- (("recursive-include cfitsio3490.*$\n") ""))))))
+ (("recursive-include cfitsio-4.2.0.*$\n") ""))))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'unbundle-cfitsio
+ (add-before 'build 'set-env
(lambda _
- (let* ((cfitsio #$(this-package-input "cfitsio"))
- (includedir (string-append "\"" cfitsio "/include\""))
- (libdir (string-append "\"" cfitsio "/lib\"")))
- ;; Use Guix' cfitsio instead of the bundled one
- (substitute* "setup.py"
- (("self.use_system_fitsio = False") "pass")
- (("self.system_fitsio_includedir = None") "pass")
- (("self.system_fitsio_libdir = None") "pass")
- (("self.use_system_fitsio") "True")
- (("self.system_fitsio_includedir") includedir)
- (("self.system_fitsio_libdir") libdir)))))
+ (setenv "FITSIO_USE_SYSTEM_FITSIO" "True")
+ (setenv "FITSIO_SYSTEM_FITSIO_INCLUDEDIR"
+ (string-append
+ #$(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"))))))
(native-inputs
(list python-pytest))
(inputs
- (list curl cfitsio))
+ (list curl cfitsio zlib))
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/esheldon/fitsio")
- 08/33: gnu: python-coloful: Update to 0.5.5., (continued)
- 08/33: gnu: python-coloful: Update to 0.5.5., guix-commits, 2023/09/27
- 07/33: gnu: python-pyotp: Update to 2.9.0., guix-commits, 2023/09/27
- 06/33: gnu: gajim: Clean up formatting., guix-commits, 2023/09/27
- 11/33: gnu: splash: Update to 3.8.4., guix-commits, 2023/09/27
- 10/33: gnu: libxisf: Extend description., guix-commits, 2023/09/27
- 14/33: gnu: python-cdflib: Fix version detection., guix-commits, 2023/09/27
- 09/33: gnu: libxisf: Update to 0.2.9., guix-commits, 2023/09/27
- 12/33: gnu: python-astropy-healpix: Update to 1.0.0., guix-commits, 2023/09/27
- 15/33: gnu: python-sunpy: Enable more tests., guix-commits, 2023/09/27
- 20/33: gnu: python-photutils: Update to 1.9.0., guix-commits, 2023/09/27
- 18/33: gnu: python-fitsio: Update to 1.2.0.,
guix-commits <=
- 33/33: gnu: sssd: Update to 2.9.2., guix-commits, 2023/09/27
- 32/33: gnu: wvkbd: Update to 0.14.1., guix-commits, 2023/09/27
- 21/33: gnu: python-pyvo: Update to 1.4.2., guix-commits, 2023/09/27
- 22/33: gnu: python-rad: Update to 0.17.1., guix-commits, 2023/09/27
- 25/33: gnu: python-stdatamodels: Update to 1.8.0., guix-commits, 2023/09/27
- 23/33: gnu: python-roman-datamodels: Update to 0.17.1., guix-commits, 2023/09/27
- 13/33: gnu: python-cdflib: Update to 1.1.0., guix-commits, 2023/09/27
- 26/33: gnu: python-astropy: Update to 5.3.3., guix-commits, 2023/09/27
- 30/33: gnu: lhasa: Update to 0.4.0., guix-commits, 2023/09/27
- 16/33: gnu: python-bayesicfitting: Update to 3.2.0., guix-commits, 2023/09/27