mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 23:02:16 -05:00
gnu: python-regions: Use G-expressions.
* gnu/packages/astronomy.scm (python-regions): Use G-expressions. [build-system]: Swap to pyproject-build-system. [arguments]<#:phases>: Remove 'delete-doctest phase. Merge all (add-before 'check ...) phases into 'prepare-test-environment. Change-Id: I31dc6a195a6f6f818303d5c0e32799770cd448c8
This commit is contained in:
parent
1ef2e0bdf3
commit
bfdcf6b365
1 changed files with 13 additions and 14 deletions
|
@ -2283,21 +2283,20 @@ (define-public python-regions
|
|||
(uri (pypi-uri "regions" version))
|
||||
(sha256
|
||||
(base32 "09401pz7926zlci7cznd78hmv9947f6jxyy2afqdqc1xaccpzcq2"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:test-target "pytest"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; This doctest requires online data.
|
||||
(add-after 'unpack 'delete-doctest
|
||||
(lambda _ (delete-file "docs/masks.rst")))
|
||||
;; This file is opened in both install and check phases.
|
||||
(add-before 'install 'writable-compiler
|
||||
(lambda _ (make-file-writable "regions/_compiler.c")))
|
||||
(add-before 'check 'writable-compiler
|
||||
(lambda _ (make-file-writable "regions/_compiler.c")))
|
||||
(add-before 'check 'writable-home
|
||||
(lambda _ (setenv "HOME" (getcwd)))))))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; This file is opened in both install and check phases.
|
||||
;; XXX: Check if it is still required.
|
||||
(add-before 'install 'writable-compiler
|
||||
(lambda _ (make-file-writable "regions/_compiler.c")))
|
||||
(add-before 'check 'prepare-test-environment
|
||||
(lambda _
|
||||
(setenv "HOME" "/tmp")
|
||||
(make-file-writable "regions/_compiler.c")
|
||||
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
||||
(propagated-inputs
|
||||
(list python-astropy
|
||||
python-h5py
|
||||
|
|
Loading…
Reference in a new issue