gnu: python-astropy: Update to 5.1.1.
* gnu/packages/astronomy.scm (python-astropy): Update to 5.1.1. [source]{snippet}: Unbundle wcslib. [arguments]{phases}: preparations: Use all system libraries. [inputs]: Add wcslib. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
d86ac0008f
commit
109cb41780
1 changed files with 8 additions and 12 deletions
|
@ -982,25 +982,23 @@ accurately in real time at any rate desired.")
|
||||||
(define-public python-astropy
|
(define-public python-astropy
|
||||||
(package
|
(package
|
||||||
(name "python-astropy")
|
(name "python-astropy")
|
||||||
(version "5.1")
|
(version "5.1.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "astropy" version))
|
(uri (pypi-uri "astropy" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0zkv3ddzlxx21i796azfbqxrqnsxn83vsczscv577iyzxp3v5c8x"))
|
(base32 "10dxjim60ch4qznqa5s63q936mkvy95p0k26kcwzv43hmybdcjxs"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
;; Remove Python bundles.
|
;; Remove Python bundles.
|
||||||
(with-directory-excursion "astropy/extern"
|
(with-directory-excursion "astropy/extern"
|
||||||
(for-each delete-file-recursively '("ply" "configobj")))
|
(for-each delete-file-recursively '("ply" "configobj")))
|
||||||
;; Remove cextern bundles and leave the wcslib bundle. Astropy
|
;; Remove cextern bundles. Check bundled versions against available
|
||||||
;; upgrades to different versions of wcslib every few releases
|
;; in Guix in the future update of astropy.
|
||||||
;; and tests break every upgrade.
|
|
||||||
;; TODO: unbundle wcslib.
|
|
||||||
(with-directory-excursion "cextern"
|
(with-directory-excursion "cextern"
|
||||||
(for-each delete-file-recursively '("cfitsio" "expat")))
|
(for-each delete-file-recursively '("cfitsio" "expat" "wcslib")))
|
||||||
#t))))
|
#t))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -1008,10 +1006,8 @@ accurately in real time at any rate desired.")
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'preparations
|
(add-after 'unpack 'preparations
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Use our own libraries in place of bundles, with the
|
;; Use our own libraries in place of bundles.
|
||||||
;; exception of wcslib.
|
(setenv "ASTROPY_USE_SYSTEM_ALL" "1")
|
||||||
(setenv "ASTROPY_USE_SYSTEM_CFITSIO" "1")
|
|
||||||
(setenv "ASTROPY_USE_SYSTEM_EXPAT" "1")
|
|
||||||
;; Some tests require a writable home.
|
;; Some tests require a writable home.
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
;; Relax xfail tests.
|
;; Relax xfail tests.
|
||||||
|
@ -1058,7 +1054,7 @@ accurately in real time at any rate desired.")
|
||||||
python-sgp4
|
python-sgp4
|
||||||
python-skyfield))
|
python-skyfield))
|
||||||
(inputs
|
(inputs
|
||||||
(list cfitsio expat))
|
(list cfitsio expat wcslib))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-configobj
|
(list python-configobj
|
||||||
python-numpy
|
python-numpy
|
||||||
|
|
Reference in a new issue