guix_mirror_bot pushed a commit to branch astro-update
in repository guix.
commit 45b7b70dc428f160cbefd08daf05deea8f3bcd2a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Mar 17 15:58:32 2026 +0000
gnu: python-ephem: Update to 4.2.1.
* gnu/packages/astronomy.scm (python-ephem): Update to 4.2.1.
[source]: Switch to git-fetch.
[arguments] <test-backend, test-flags>: Use 'unittest, and run all tests.
[phases]{remove-installed-tests}: Remove phase.
{remove-local-source}: Add phase.
[native-inputs]: Remove tzdata; add tzdata-for-tests.
Change-Id: I9f9614b6edf09ea5cc57c81005e3e375eea786f6
---
gnu/packages/astronomy.scm | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index bb338e4388..7b529f8479 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4678,31 +4678,31 @@ older EsoReflex environment.")
(define-public python-ephem
(package
(name "python-ephem")
- (version "4.2")
+ (version "4.2.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "ephem" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/brandon-rhodes/pyephem")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0rb0vc3kgmw5rzhfhxffg94bcwasm46sf814hv7l13ry8m7xckrw"))))
+ (base32 "1slb77iqmg3krh43iscpxljp8p41crpvn914gpxcnkgx8njraix1"))))
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags
- #~(list "--deselect=ephem/tests/test_jpl.py::JPLTest::runTest")
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "ephem")
#:phases
#~(modify-phases %standard-phases
- ;; XXX: See https://codeberg.org/guix/guix/issues/2108
- (add-after 'install 'remove-installed-tests
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (delete-file-recursively ".")
- (mkdir-p "ephem")
- (let* ((site (site-packages inputs outputs))
- (tests (string-append site "/ephem/tests")))
- (copy-recursively tests "ephem/tests")
- (delete-file-recursively tests)))))))
- (native-inputs
- (list python-pytest python-setuptools tzdata))
+ (add-before 'check 'remove-local-source
+ (lambda _
+ ;; See: <https://codeberg.org/guix/guix/issues/7243>.
+ (delete-file-recursively "ephem"))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ tzdata-for-tests))
(home-page "https://rhodesmill.org/pyephem/")
(synopsis "Compute positions of the planets and stars")
(description