[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#67237] [PATCH 31/32] gnu: python-stsci-stimage: Enable tests.
From: |
Sharlatan Hellseher |
Subject: |
[bug#67237] [PATCH 31/32] gnu: python-stsci-stimage: Enable tests. |
Date: |
Fri, 17 Nov 2023 12:16:20 +0000 |
* gnu/packages/astronomy.scm (python-stsci-stimage): Enable tests.
[arguments]{phases}: Add custom 'check phase.
[native-inputs]: Add python-waf and indent list.
Change-Id: Ifceace1d89aff97e938c4fb95f33525477499949
---
gnu/packages/astronomy.scm | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index bf419ae526..c063285b52 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2695,11 +2695,23 @@ (define-public python-stsci-stimage
(build-system pyproject-build-system)
(arguments
(list
- ;; XXX: Fix failing tests. There are errors to load test files.
- #:tests? #f))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Test steps are taken from GitHub Actions.
+ ;; See https://github.com/spacetelescope/stsci.stimage/issues/27
+ (replace 'check
+ (lambda _
+ (copy-file (string-append
+ #$(this-package-native-input "python-waf") "/bin/waf")
+ "waf")
+ (invoke "python" "waf" "configure" "build" "do_tests"))))))
(propagated-inputs (list python-numpy))
- (native-inputs (list python-codecov python-pytest python-pytest-cov
- python-setuptools-scm))
+ (native-inputs
+ (list python-codecov
+ python-pytest
+ python-pytest-cov
+ python-setuptools-scm
+ python-waf))
(home-page "https://stscistimage.readthedocs.io/en/latest/")
(synopsis "STScI image processing")
(description "This package provides an astronomical Python package with
--
2.41.0
- [bug#67237] [PATCH 00/32] gnu: Astronomy 2023/11 updates., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 04/32] gnu: python-asdf-3.0: Update to 3.0.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 07/32] gnu: python-crds: Update to 11.17.9., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 06/32] gnu: python-casa-formats-io: Update to 0.2.2., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 13/32] gnu: python-rad: Update to 0.18.0., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 02/32] gnu: gpredict: Improve package style., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 14/32] gnu: python-roman-datamodels: Update to 0.18.0., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 22/32] gnu: python-extension-helpers: Improve style., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 27/32] gnu: python-pytest-socket: Update to 0.6.0., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 30/32] gnu: python-synphot: Enable tests., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 31/32] gnu: python-stsci-stimage: Enable tests.,
Sharlatan Hellseher <=
- [bug#67237] [PATCH 28/32] gnu: python-pytest-socket: Enable tests., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 05/32] gnu: python-astroalign: Update to 2.5.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 16/32] gnu: python-wiimatch: Update to 0.3.2., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 15/32] gnu: python-sgp4: Update to 2.23., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 03/32] gnu: libpasastro: Update to 1.4.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 11/32] gnu: python-pynbody: Update to 1.4.2., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 19/32] gnu: python-stsci-imagestats: Swap to pyproject-build-system., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 12/32] gnu: python-pynbody: Prepare for cross compilation., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 18/32] gnu: python-drms: Simplify package., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 10/32] gnu: python-posix-ipc: Update to 1.1.1., Sharlatan Hellseher, 2023/11/17