[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/27: gnu: python-stsci-stimage: Enable tests.
From: |
guix-commits |
Subject: |
27/27: gnu: python-stsci-stimage: Enable tests. |
Date: |
Sat, 18 Nov 2023 20:57:49 -0500 (EST) |
bavier pushed a commit to branch master
in repository guix.
commit b7abea0fd6a146563830db1dc4ddd0cceb6fcf1c
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 17 12:16:20 2023 +0000
gnu: python-stsci-stimage: Enable tests.
* 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
Signed-off-by: Eric Bavier <bavier@posteo.net>
---
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 @@ task}.")
(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
- 20/27: gnu: python-wiimatch: Update to 0.3.2., (continued)
- 20/27: gnu: python-wiimatch: Update to 0.3.2., guix-commits, 2023/11/18
- 21/27: gnu: splash: Update to 3.9.0., guix-commits, 2023/11/18
- 23/27: gnu: python-stsci-imagestats: Swap to pyproject-build-system., guix-commits, 2023/11/18
- 24/27: gnu: python-astroquery: Improve package style., guix-commits, 2023/11/18
- 25/27: gnu: python-poliastro: Improve package style., guix-commits, 2023/11/18
- 10/27: gnu: python-astroalign: Update to 2.5.1., guix-commits, 2023/11/18
- 12/27: gnu: python-crds: Update to 11.17.9., guix-commits, 2023/11/18
- 22/27: gnu: python-drms: Simplify package., guix-commits, 2023/11/18
- 02/27: gnu: qd: Update to 2.3.24., guix-commits, 2023/11/18
- 26/27: gnu: python-synphot: Enable tests., guix-commits, 2023/11/18
- 27/27: gnu: python-stsci-stimage: Enable tests.,
guix-commits <=