diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-20 22:38:33 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-30 21:36:14 +0100 |
| commit | 21a22addd33f5794384a9c9545d41cd08d3faf65 (patch) | |
| tree | b4cdbaf78f973db83730791deb492419319a37b2 /gnu | |
| parent | c8a468047c4a4281a355df8aa41a9019d5df3190 (diff) | |
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: I350c4ced2cb4afaff72d4d4941d198932cd888f5
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/astronomy.scm | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index ca25b979143..d816efe9f94 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm | |||
| @@ -3242,6 +3242,8 @@ task}.") | |||
| 3242 | (define-public python-stsci-stimage | 3242 | (define-public python-stsci-stimage |
| 3243 | (package | 3243 | (package |
| 3244 | (name "python-stsci-stimage") | 3244 | (name "python-stsci-stimage") |
| 3245 | ;; PyPI version was 0.2.8 but the latest version tag on GiHub was 0.2.7, | ||
| 3246 | ;; see <https://github.com/spacetelescope/stsci.stimage/issues/38> | ||
| 3245 | (version "0.2.8") | 3247 | (version "0.2.8") |
| 3246 | (source (origin | 3248 | (source (origin |
| 3247 | (method url-fetch) | 3249 | (method url-fetch) |
| @@ -3252,27 +3254,26 @@ task}.") | |||
| 3252 | (build-system pyproject-build-system) | 3254 | (build-system pyproject-build-system) |
| 3253 | (arguments | 3255 | (arguments |
| 3254 | (list | 3256 | (list |
| 3257 | #:test-flags #~(list "test_c") | ||
| 3255 | #:phases | 3258 | #:phases |
| 3256 | #~(modify-phases %standard-phases | 3259 | #~(modify-phases %standard-phases |
| 3257 | ;; Test steps are taken from GitHub Actions. | 3260 | ;; Test steps are taken from GitHub Actions, see |
| 3258 | ;; See https://github.com/spacetelescope/stsci.stimage/issues/27 | 3261 | ;; <https://github.com/spacetelescope/stsci.stimage/issues/27> |
| 3259 | (replace 'check | 3262 | (add-before 'check 'waf-configure-build |
| 3260 | (lambda _ | 3263 | (lambda _ |
| 3261 | (copy-file (string-append | 3264 | (copy-file (string-append |
| 3262 | #$(this-package-native-input "python-waf") "/bin/waf") | 3265 | #$(this-package-native-input "python-waf") "/bin/waf") |
| 3263 | "waf") | 3266 | "waf") |
| 3264 | (invoke "python" "waf" "configure" "build" "do_tests")))))) | 3267 | (invoke "python" "waf" "configure" "build")))))) |
| 3265 | (propagated-inputs (list python-numpy)) | 3268 | (propagated-inputs |
| 3269 | (list python-numpy)) | ||
| 3266 | (native-inputs | 3270 | (native-inputs |
| 3267 | (list python-codecov | 3271 | (list python-pytest python-setuptools-scm python-waf)) |
| 3268 | python-pytest | ||
| 3269 | python-pytest-cov | ||
| 3270 | python-setuptools-scm | ||
| 3271 | python-waf)) | ||
| 3272 | (home-page "https://stscistimage.readthedocs.io/en/latest/") | 3272 | (home-page "https://stscistimage.readthedocs.io/en/latest/") |
| 3273 | (synopsis "STScI image processing") | 3273 | (synopsis "STScI image processing") |
| 3274 | (description "This package provides an astronomical Python package with | 3274 | (description |
| 3275 | image processing functions: @code{xyxymatch}, @code{geomap}.") | 3275 | "This package provides an astronomical Python package with image |
| 3276 | processing functions: @code{xyxymatch}, @code{geomap}.") | ||
| 3276 | (license license:bsd-3))) | 3277 | (license license:bsd-3))) |
| 3277 | 3278 | ||
| 3278 | (define-public python-stcal | 3279 | (define-public python-stcal |
