~ruther/guix-local

bf645aa89503202a7d2e1874aa2ae7fde429df50 — Sharlatan Hellseher 6 months ago e003a89
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
1 files changed, 9 insertions(+), 1 deletions(-)

M gnu/packages/astronomy.scm
M gnu/packages/astronomy.scm => gnu/packages/astronomy.scm +9 -1
@@ 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))