guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 045079199a7680b5b91fb9b1d4a051e5b1a9fae8
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Sep 23 21:42:55 2025 +0100
gnu: python-suntime: Fix tests.
* gnu/packages/astronomy.scm (python-suntime)[source]: Switch to
git-fetch providing tests.
[arguments] <test-flags>: Provide the path to the test file.
[native-inputs]: Remove python-wheel; add python-pytest.
Change-Id: Ia00f4940d6e398996eaa67689ff1d804533d2729
---
gnu/packages/astronomy.scm | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 5ab59035b4..1d56773c35 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -9034,14 +9034,19 @@ analyze spectrogram data.")
(version "1.3.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "suntime" version))
+ (method git-fetch) ; no tests data in the PyPI tarball
+ (uri (git-reference
+ (url "https://github.com/SatAgro/suntime")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1kyd1r6zcs0jmh5gq74adrnb1h7dfr1mzjq4k4vbngfiga8gfd28"))))
+ (base32 "145jqwnl8frg49981xcli1l13h73m40gkbnpwa88lhva03j7y1k2"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:test-flags #~(list "tests.py")))
(native-inputs
- (list python-setuptools
- python-wheel))
+ (list python-pytest
+ python-setuptools))
(propagated-inputs
(list python-dateutil))
(home-page "https://github.com/SatAgro/suntime")