mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-20 01:33:18 -05:00
gnu: python-fitsio: Use G-Expressions.
* gnu/packages/astronomy.scm (python-fitsio): Use G-Expressions. Signed-off-by: Vinicius Monego <monego@posteo.net>
This commit is contained in:
parent
ee9dfc1dda
commit
2e501ccc03
1 changed files with 20 additions and 19 deletions
|
@ -476,27 +476,28 @@ (define-public python-fitsio
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
;; Remove the bundled cfitsio
|
;; Remove the bundled cfitsio
|
||||||
`(begin
|
#~(begin
|
||||||
(delete-file-recursively "cfitsio3490")
|
(delete-file-recursively "cfitsio3490")
|
||||||
(substitute* "MANIFEST.in"
|
(substitute* "MANIFEST.in"
|
||||||
(("recursive-include cfitsio3490.*$\n") ""))))))
|
(("recursive-include cfitsio3490.*$\n") ""))))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'unbundle-cfitsio
|
#~(modify-phases %standard-phases
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(add-after 'unpack 'unbundle-cfitsio
|
||||||
(let* ((cfitsio (assoc-ref inputs "cfitsio"))
|
(lambda _
|
||||||
(includedir (string-append "\"" cfitsio "/include\""))
|
(let* ((cfitsio #$(this-package-input "cfitsio"))
|
||||||
(libdir (string-append "\"" cfitsio "/lib\"")))
|
(includedir (string-append "\"" cfitsio "/include\""))
|
||||||
;; Use Guix' cfitsio instead of the bundled one
|
(libdir (string-append "\"" cfitsio "/lib\"")))
|
||||||
(substitute* "setup.py"
|
;; Use Guix' cfitsio instead of the bundled one
|
||||||
(("self.use_system_fitsio = False") "pass")
|
(substitute* "setup.py"
|
||||||
(("self.system_fitsio_includedir = None") "pass")
|
(("self.use_system_fitsio = False") "pass")
|
||||||
(("self.system_fitsio_libdir = None") "pass")
|
(("self.system_fitsio_includedir = None") "pass")
|
||||||
(("self.use_system_fitsio") "True")
|
(("self.system_fitsio_libdir = None") "pass")
|
||||||
(("self.system_fitsio_includedir") includedir)
|
(("self.use_system_fitsio") "True")
|
||||||
(("self.system_fitsio_libdir") libdir))))))))
|
(("self.system_fitsio_includedir") includedir)
|
||||||
|
(("self.system_fitsio_libdir") libdir))))))))
|
||||||
(inputs (list curl))
|
(inputs (list curl))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-numpy cfitsio))
|
(list python-numpy cfitsio))
|
||||||
|
|
Loading…
Reference in a new issue