summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-09-18 14:26:32 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:31 +0100
commitc534d42b435dafbd731ef7bb312a1a5c5b3e652d (patch)
tree51958081c01d439b2d75d40f95d309a08cd2d0a3
parent978fc928f4a5e6ea6ea528fd04c82b34eb7657d1 (diff)
gnu: python-jplephem: Update to 2.23.
* gnu/packages/astronomy.scm (python-jplephem): Update to 2.23. [source]: Switch to git-fetch providing test data. [phases]{check}: Rework test steps. [native-inputs]: Remove python-setuptools and python-wheel; add python-setuptools-next. (python-jplephem-2.22): New variable. (python-astropy-6)[propagated-inputs]: Remove python-jplephem; add python-jplephem-2.22 Change-Id: I9a53357a3c06c219a5620b5d23ce640b2a5d70db
-rw-r--r--gnu/packages/astronomy.scm46
1 files changed, 38 insertions, 8 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 04726d3972..b4f0e0e12a 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2795,7 +2795,10 @@ astronomy and astrophysics.")
(with-directory-excursion "astropy/extern"
(for-each delete-file-recursively '("ply" "configobj")))
(with-directory-excursion "cextern"
- (for-each delete-file-recursively '("expat" "wcslib")))))))))
+ (for-each delete-file-recursively '("expat" "wcslib")))))))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-astropy)
+ (replace "python-jplephem" python-jplephem-2.22)))))
(define-public python-astropy-healpix
(package
@@ -4843,13 +4846,16 @@ satellite.")
(define-public python-jplephem
(package
(name "python-jplephem")
- (version "2.22")
+ (version "2.23")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "jplephem" version))
+ (method git-fetch) ;no tests data in the PyPI tarball
+ (uri (git-reference
+ (url "https://github.com/brandon-rhodes/python-jplephem")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0b2rgb7pvwnl72pqjryf9c812mmdxr69fwiym7mnz05l2xrcr6hd"))))
+ (base32 "0mmd30cymb9f259c657d7jd65plirdsngnk14fbyjxd9vbryn2qa"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -4858,10 +4864,10 @@ satellite.")
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "python" "-m" "unittest" "discover" "-s" "test")))))))
+ (with-directory-excursion "ci"
+ (invoke "python" "-m" "unittest" "test"))))))))
(native-inputs
- (list python-setuptools
- python-wheel))
+ (list python-setuptools-next))
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/brandon-rhodes/python-jplephem")
@@ -4874,6 +4880,30 @@ Astronomical Almanac to within 0.0005 arcseconds (half a @emph{mas} or
milliarcsecond).")
(license license:expat)))
+;; The last compatible version for python-astropy-6.
+(define-public python-jplephem-2.22
+ (hidden-package
+ (package
+ (inherit python-jplephem)
+ (version "2.22")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "jplephem" version))
+ (sha256
+ (base32 "0b2rgb7pvwnl72pqjryf9c812mmdxr69fwiym7mnz05l2xrcr6hd"))))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "unittest" "discover" "-s" "test")))))))
+ (native-inputs
+ (list python-setuptools
+ python-wheel)))))
+
(define-public python-jwst
(package
(name "python-jwst")