diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-20 16:16:16 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-20 19:27:02 +0100 |
commit | 585e9a1ce02046dc7a090fd93ba0966b33b3e0b8 (patch) | |
tree | 4775a9e1aca55b040b85b042b0fd90e2bfa8fd49 | |
parent | 940141cf061bee27b65f7cb1c6728c1f5cba5f13 (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>
-rw-r--r-- | gnu/packages/astronomy.scm | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index fd6bf30230..88878d1916 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 |