gnu: python-astropy-healpix: Switch to pyproject-build-system.
* gnu/packages/astronomy.scm (python-astropy-healpix)[build-system]: Switch to pyproject-build-system. [arguments]: Do not override the 'check phase. Use G-Expressions. Signed-off-by: Vinicius Monego <monego@posteo.net>master
parent
2e501ccc03
commit
3c17950aff
|
@ -1243,23 +1243,19 @@ astronomy and astrophysics.")
|
||||||
(uri (pypi-uri "astropy_healpix" version))
|
(uri (pypi-uri "astropy_healpix" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1n1svmd41iv944zf4anbnsigd47zr4dfjf49vrc7m6928gmq9hw8"))))
|
(base32 "1n1svmd41iv944zf4anbnsigd47zr4dfjf49vrc7m6928gmq9hw8"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
;; This file is opened in both install and check phases.
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'install 'writable-compiler
|
;; This file is opened in both install and check phases.
|
||||||
(lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
|
(add-before 'install 'writable-compiler
|
||||||
(add-before 'check 'writable-compiler
|
(lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
|
||||||
(lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
|
(add-before 'check 'prepare-test-environment
|
||||||
(replace 'check
|
(lambda _
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
;; Extensions have to be rebuilt before running the tests.
|
||||||
(when tests?
|
(invoke "python" "setup.py" "build_ext" "--inplace")
|
||||||
(add-installed-pythonpath inputs outputs)
|
(make-file-writable "astropy_healpix/_compiler.c"))))))
|
||||||
;; Extensions have to be rebuilt before running the tests.
|
|
||||||
(invoke "python" "setup.py" "build_ext" "--inplace")
|
|
||||||
(invoke "python" "-m" "pytest"
|
|
||||||
"--pyargs" "astropy_healpix")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-extension-helpers
|
(list python-extension-helpers
|
||||||
python-hypothesis
|
python-hypothesis
|
||||||
|
|
Reference in New Issue