summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-20 16:16:16 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:35 +0100
commita043e61a1cbd61da636d80877f1b3a3240cdc2c4 (patch)
treef66af196dc9acf47ba9ff9765a3e4cfee7ba6db6 /gnu
parent548538a66d14cdaf8ec9900127a59acbe9bd2950 (diff)
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>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/astronomy.scm19
1 files changed, 16 insertions, 3 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index fd6bf302305..88878d19160 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -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