gnu: python-ephem: Fix 'check phase.

* gnu/packages/astronomy.scm (python-ephem)[arguments]
<#:test-flags>: Ignore failing test.
<#:phases>: Add phase 'remove-installed-tests.
[native-inputs]: Add python-pytest, remove python-wheel.

Change-Id: I128d996ac19b413cc0680c759a21493ed722d86e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-20 16:16:16 +02:00 committed by Sharlatan Hellseher
parent 548538a66d
commit a043e61a1c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4035,10 +4035,23 @@ older EsoReflex environment.")
(sha256
(base32 "0rb0vc3kgmw5rzhfhxffg94bcwasm46sf814hv7l13ry8m7xckrw"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
#~(list "--deselect=ephem/tests/test_jpl.py::JPLTest::runTest")
#: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-setuptools
python-wheel
tzdata))
(list python-pytest python-setuptools tzdata))
(home-page "https://rhodesmill.org/pyephem/")
(synopsis "Compute positions of the planets and stars")
(description