GNU bug report logs -
#67915
[PATCH 00/32] gnu: Astronomy 2023/12 updates.
Previous Next
Full log
Message #77 received at 67915 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/astronomy.scm (python-stsci-imagestats): Enable tests.
[arguments]<#:phases>: Add 'build-extensions phase.
[native-inputs]: Add python-pytest.
Change-Id: I8cb35fd083453d577eb6ad94f097502566c1bcee
---
gnu/packages/astronomy.scm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 00653efd70..1e4d54b2d4 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2690,9 +2690,15 @@ (define-public python-stsci-imagestats
"01jqqrhcna0ghin48bbcza57d12371ny4l4pqws89irwdhd8xr0r"))))
(build-system pyproject-build-system)
(arguments
- (list #:tests? #f)) ;No tests
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'build-extensions
+ (lambda _
+ ;; Cython extensions have to be built before running the tests.
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(propagated-inputs (list python-numpy))
- (native-inputs (list python-setuptools-scm))
+ (native-inputs (list python-pytest python-setuptools-scm))
(home-page "https://stsciimagestats.readthedocs.io/en/latest/")
(synopsis "Compute sigma-clipped statistics on data arrays")
(description
--
2.41.0
This bug report was last modified 1 year and 126 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.