guix_mirror_bot pushed a commit to branch astro-update
in repository guix.
commit 56a97a2ea28ee562cfd35bc967a8f37149a7d20e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jan 20 10:25:45 2026 +0000
gnu: python-stpipe: Fix tests.
* gnu/packages/astronomy.scm (python-stpipe):
[source]: Switch to git-fetch.
[arguments] <test-flags>: Skip 6 tests.
[phases]{set-version}: New phase.
Change-Id: Ib12027ec304073f113731ee98f379277d8b51e98
---
gnu/packages/astronomy.scm | 34 +++++++++++++++++++++++++++++++---
1 file changed, 31 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 8b109f19c4..84d085b009 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -9889,10 +9889,13 @@ implemented in the @acronym{JWST, James Webb Space
Telescope} and
(version "0.11.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "stpipe" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/spacetelescope/stpipe")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1and1hjlwbmqb2nkw04gmp7q0nrnc0s22vgkq6bfs78c77z7cswf"))
+ (base32 "13vg3fjk9sqyyi4gwa3m5a2kzqh87vh36px07lbb0kx4fby5cnam"))
(modules '((guix build utils)))
(snippet
'(begin
@@ -9903,6 +9906,31 @@ implemented in the @acronym{JWST, James Webb Space
Telescope} and
(("from astropy.extern.configobj.configobj import ") "from
configobj import ")
(("from astropy.extern.configobj.validate import ") "from
validate import "))))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests: 261 passed, 1 skipped, 6 deselected, 1 warning
+ #:test-flags
+ ;; XXX: These tests faileur might be something to investigate deeper,
+ ;; the project was released on <2025-09-26>.
+ #~(list #$@(map (lambda (test)
+ (string-append "--deselect=tests/" test))
+ ;; ModuleNotFoundError: No module named
+ ;; 'roman_datamodels.maker_utils'
+ (list "test_abstract_datamodel.py::test_roman_datamodel"
+ ;; FileNotFoundError: Unable to fetch schema from
+ ;; non-file URL:
+ ;;
http://stsci.edu/schemas/stpipe/step_config-1.0.0
+ "test_step.py::test_build_config_pipe_config_file"
+ "test_step.py::test_build_config_pipe_kwarg"
+ "test_step.py::test_build_config_step_config_file"
+ "test_step.py::test_build_config_step_kwarg"
+ "test_step.py::test_step_list_args")))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$(version-major+minor+point version)))))))
(native-inputs
(list python-pytest
python-pytest-doctestplus