guix_mirror_bot pushed a commit to branch master
in repository guix.

commit bf645aa89503202a7d2e1874aa2ae7fde429df50
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Nov 19 22:13:26 2025 +0000

    gnu: python-astropy: Add missing coordinates data file.
    
    While packaging python-pypeit all tests failed to find valid coordinates
    for telescopes from "astropy/coordinates/data/sites.json" which was not
    included in the python-astropy, and packaged separately. It's downloaded
    during the first invocation of astropy from http://data.astropy.org/.
    This change ingests missing JSON file from astro-data package.
    
    * gnu/packages/astronomy.scm (python-astropy)[native-inputs]: Add
    specification-astropy-data.
    
    Change-Id: Ie95182c6350b20eeb577340c30197a603e2ab98c
---
 gnu/packages/astronomy.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 69f542c418..928b28f0e6 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2946,6 +2946,13 @@ constraints (i.e., altitude, airmass, moon 
separation/illumination, etc.)
                     " and not test_ephemeris_local_file_not_ephemeris"))
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'install-coordinates/sites.json
+            (lambda _
+              (copy-file
+               (string-append #$(this-package-native-input
+                                 "specification-astropy-data")
+                              "/share/coordinates/sites.json")
+               "astropy/coordinates/data/sites.json")))
           (add-after 'unpack 'preparations
             (lambda _
               ;; Use our own libraries in place of bundles.
@@ -2986,7 +2993,8 @@ constraints (i.e., altitude, airmass, moon 
separation/illumination, etc.)
            python-setuptools-scm
            python-sgp4
            python-skyfield
-           python-threadpoolctl))
+           python-threadpoolctl
+           specification-astropy-data))
     (inputs
      (list expat
            wcslib))

Reply via email to