gnu: python-stsci-stimage: Adjust test steps.
* gnu/packages/astronomy.scm (python-stsci-stimage): [arguments]: <#:test-flags>: Add them. <#:phases>: Fail over to default 'check phase and add 'waf-configure-build phase before check. [native-inputs]: Remove python-codecov and, python-pytest-cov. [description]: Fix indentation. Change-Id: I350c4ced2cb4afaff72d4d4941d198932cd888f5master
parent
c8a468047c
commit
21a22addd3
|
@ -3242,6 +3242,8 @@ task}.")
|
||||||
(define-public python-stsci-stimage
|
(define-public python-stsci-stimage
|
||||||
(package
|
(package
|
||||||
(name "python-stsci-stimage")
|
(name "python-stsci-stimage")
|
||||||
|
;; PyPI version was 0.2.8 but the latest version tag on GiHub was 0.2.7,
|
||||||
|
;; see <https://github.com/spacetelescope/stsci.stimage/issues/38>
|
||||||
(version "0.2.8")
|
(version "0.2.8")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -3252,27 +3254,26 @@ task}.")
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-flags #~(list "test_c")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
;; Test steps are taken from GitHub Actions.
|
;; Test steps are taken from GitHub Actions, see
|
||||||
;; See https://github.com/spacetelescope/stsci.stimage/issues/27
|
;; <https://github.com/spacetelescope/stsci.stimage/issues/27>
|
||||||
(replace 'check
|
(add-before 'check 'waf-configure-build
|
||||||
(lambda _
|
(lambda _
|
||||||
(copy-file (string-append
|
(copy-file (string-append
|
||||||
#$(this-package-native-input "python-waf") "/bin/waf")
|
#$(this-package-native-input "python-waf") "/bin/waf")
|
||||||
"waf")
|
"waf")
|
||||||
(invoke "python" "waf" "configure" "build" "do_tests"))))))
|
(invoke "python" "waf" "configure" "build"))))))
|
||||||
(propagated-inputs (list python-numpy))
|
(propagated-inputs
|
||||||
|
(list python-numpy))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-codecov
|
(list python-pytest python-setuptools-scm python-waf))
|
||||||
python-pytest
|
|
||||||
python-pytest-cov
|
|
||||||
python-setuptools-scm
|
|
||||||
python-waf))
|
|
||||||
(home-page "https://stscistimage.readthedocs.io/en/latest/")
|
(home-page "https://stscistimage.readthedocs.io/en/latest/")
|
||||||
(synopsis "STScI image processing")
|
(synopsis "STScI image processing")
|
||||||
(description "This package provides an astronomical Python package with
|
(description
|
||||||
image processing functions: @code{xyxymatch}, @code{geomap}.")
|
"This package provides an astronomical Python package with image
|
||||||
|
processing functions: @code{xyxymatch}, @code{geomap}.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python-stcal
|
(define-public python-stcal
|
||||||
|
|
Reference in New Issue