diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-20 10:25:45 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-30 09:10:14 +0000 |
| commit | 66e4c4d7460ac47653ce8dec214aa3b90ee0c327 (patch) | |
| tree | 5e865cf4aa939ec5d8dca108c5094addc11477dc /gnu | |
| parent | a7b914a1638f5f8577abb26255da2a232f07e3de (diff) | |
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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/astronomy.scm | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 7793da47cc..d6d6a09af3 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -9929,10 +9929,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 @@ -9943,6 +9946,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 |
