1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
4 ;;; Copyright © 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
5 ;;; Copyright © 2019 by Amar Singh <nly@disroot.org>
6 ;;; Copyright © 2020 R Veera Kumar <vkor@vkten.in>
7 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
8 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages astronomy)
26 #:use-module (guix packages)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix download)
29 #:use-module (guix git-download)
30 #:use-module (guix utils)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages algebra)
33 #:use-module (gnu packages autotools)
34 #:use-module (gnu packages check)
35 #:use-module (gnu packages compression)
36 #:use-module (gnu packages curl)
37 #:use-module (gnu packages fontutils)
38 #:use-module (gnu packages gettext)
39 #:use-module (gnu packages gl)
40 #:use-module (gnu packages glib)
41 #:use-module (gnu packages gnome)
42 #:use-module (gnu packages gtk)
43 #:use-module (gnu packages image)
44 #:use-module (gnu packages libusb)
45 #:use-module (gnu packages lua)
46 #:use-module (gnu packages maths)
47 #:use-module (gnu packages netpbm)
48 #:use-module (gnu packages perl)
49 #:use-module (gnu packages pkg-config)
50 #:use-module (gnu packages pretty-print)
51 #:use-module (gnu packages python-check)
52 #:use-module (gnu packages python-crypto)
53 #:use-module (gnu packages python-science)
54 #:use-module (gnu packages python-xyz)
55 #:use-module (gnu packages qt)
56 #:use-module (gnu packages version-control)
57 #:use-module (gnu packages xiph)
58 #:use-module (gnu packages xorg)
59 #:use-module (guix build-system cmake)
60 #:use-module (guix build-system gnu)
61 #:use-module (guix build-system python)
62 #:use-module (ice-9 match)
63 #:use-module (srfi srfi-1))
65 (define-public cfitsio
73 "http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/"
74 "cfitsio-" version ".tar.gz"))
76 (base32 "1cyl1qksnkl3cq1fzl4dmjvkd6329b57y9iqyv44wjakbh6s4rav"))))
77 (build-system gnu-build-system)
78 ;; XXX Building with curl currently breaks wcslib. It doesn't use
79 ;; pkg-config and hence won't link with -lcurl.
81 `(#:tests? #f ; no tests
83 (modify-phases %standard-phases
84 (add-after 'unpack 'patch-paths
86 (substitute* "Makefile.in" (("/bin/") ""))
88 (home-page "https://heasarc.gsfc.nasa.gov/fitsio/fitsio.html")
89 (synopsis "Library for reading and writing FITS files")
90 (description "CFITSIO provides simple high-level routines for reading and
91 writing @dfn{FITS} (Flexible Image Transport System) files that insulate the
92 programmer from the internal complexities of the FITS format. CFITSIO also
93 provides many advanced features for manipulating and filtering the information
95 (license (license:non-copyleft "file://License.txt"
96 "See License.txt in the distribution."))))
106 (string-append "ftp://ftp.eso.org/pub/qfits/qfits-" version ".tar.gz"))
108 (base32 "0m2b21mim3a7wgfg3ph2w5hv7mdvr03jmmhzipc0wcahijglcw9j"))))
109 (build-system gnu-build-system)
110 (home-page "https://www.eso.org/sci/software/eclipse/qfits/")
111 (synopsis "C library offering access to astronomical FITS files")
113 "@code{qfits} is a C library giving access to FITS file internals, both
114 for reading and writing.")
115 (license license:gpl2+)))
125 (url "https://github.com/liberfa/erfa")
126 (commit (string-append "v" version))))
127 (file-name (git-file-name name version))
129 (base32 "1vsqwvzlk7r8q7nwyb7i710blcfdl5kwcm2va9km07a820nsp84a"))))
130 (build-system gnu-build-system)
132 `(("automake" ,automake)
133 ("autoreconf" ,autoconf)
135 ("pkg-config" ,pkg-config)))
136 (home-page "https://github.com/liberfa/erfa")
137 (synopsis "Essential Routines for Fundamental Astronomy")
139 "ERFA is a C library containing key algorithms for astronomy, and is based
140 on the SOFA library published by the International Astronomical Union (IAU).")
141 (license license:bsd-3)))
150 (uri (string-append "https://www.astromatic.net/download/eye/"
151 "eye-" version ".tar.gz"))
153 (base32 "092qhzcbrkcfidbx4bv9wz42w297n80jk7a6kwyi9a3fjfz81d7k"))))
154 (build-system gnu-build-system)
155 (home-page "https://www.astromatic.net/software/eye")
156 (synopsis "Small image feature detector using machine learning")
158 "In EyE (Enhance Your Extraction) an artificial neural network connected to
159 pixels of a moving window (retina) is trained to associate these input stimuli
160 to the corresponding response in one or several output image(s). The resulting
161 filter can be loaded in SExtractor to operate complex, wildly non-linear filters
162 on astronomical images. Typical applications of EyE include adaptive filtering,
163 feature detection and cosmetic corrections.")
164 (license license:cecill)))
166 (define-public wcslib
174 "ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib-" version
177 (base32 "003h23m6d5wcs29v2vbnl63f3z35k5x70lpsqlz5c9bp1bvizh8k"))))
179 `(("cfitsio" ,cfitsio)))
180 (build-system gnu-build-system)
183 (list (string-append "--with-cfitsiolib="
184 (assoc-ref %build-inputs "cfitsio") "/lib")
185 (string-append "--with-cfitsioinc="
186 (assoc-ref %build-inputs "cfitsio") "/include"))
188 (modify-phases %standard-phases
189 (add-before 'configure 'patch-/bin/sh
191 (substitute* "makedefs.in"
194 (delete 'install-license-files)) ; installed by ‘make install’
195 ;; Parallel execution of the test suite is not supported.
196 #:parallel-tests? #f))
197 (home-page "https://www.atnf.csiro.au/people/mcalabre/WCS")
198 (synopsis "Library which implements the FITS WCS standard")
199 (description "The FITS \"World Coordinate System\" (@dfn{WCS}) standard
200 defines keywords and usage that provide for the description of astronomical
201 coordinate systems in a @dfn{FITS} (Flexible Image Transport System) image
203 (license license:lgpl3+)))
205 (define-public weightwatcher
207 (name "weightwatcher")
212 (uri (string-append "https://www.astromatic.net/download/weightwatcher/"
213 "weightwatcher-" version ".tar.gz"))
215 (base32 "1zaqd8d9rpgcwjsp92q3lkfaa22i20gppb91dz34ym54swisjc2p"))))
216 (build-system gnu-build-system)
217 (home-page "https://www.astromatic.net/software/weightwatcher")
218 (synopsis "Weight-map/flag-map multiplexer and rasteriser")
220 "Weightwatcher is a program hat combines weight-maps, flag-maps and
221 polygon data in order to produce control maps which can directly be used in
222 astronomical image-processing packages like Drizzle, Swarp or SExtractor.")
223 (license license:gpl3+)))
225 (define-public gnuastro
232 (uri (string-append "mirror://gnu/gnuastro/gnuastro-"
236 "1xp6n42qxv0x6yigi2w2l5k8006smv27lhrcssysgsvzbydghzg5"))))
237 (build-system gnu-build-system)
239 '(#:configure-flags '("--disable-static")))
241 `(("cfitsio" ,cfitsio)
242 ("curl" ,curl-minimal)
245 ("libjpeg" ,libjpeg-turbo)
250 `(("libtool" ,libtool)
252 (home-page "https://www.gnu.org/software/gnuastro/")
253 (synopsis "Astronomy utilities")
254 (description "The GNU Astronomy Utilities (Gnuastro) is a suite of
255 programs for the manipulation and analysis of astronomical data.")
256 (license license:gpl3+)))
258 (define-public sextractor
266 (url "https://github.com/astromatic/sextractor")
268 (file-name (git-file-name name version))
270 (base32 "0q69n3nyal57h3ik2xirwzrxzljrwy9ivwraxzv9566vi3n4z5mw"))))
271 (build-system gnu-build-system)
272 ;; NOTE: (Sharlatan-20210124T103117+0000): Building with `atlas' is failing
273 ;; due to missing shared library which required on configure phase. Switch
274 ;; build to use `openblas' instead. It requires FFTW with single precision
281 "--with-openblas-libdir=" (assoc-ref %build-inputs "openblas") "/lib")
283 "--with-openblas-incdir=" (assoc-ref %build-inputs "openblas") "/include")
285 "--with-fftw-libdir=" (assoc-ref %build-inputs "fftw") "/lib")
287 "--with-fftw-incdir=" (assoc-ref %build-inputs "fftw") "/include"))))
289 `(("autoconf" ,autoconf)
290 ("automake" ,automake)
291 ("libtool" ,libtool)))
293 `(("openblas" ,openblas)
295 (home-page "http://www.astromatic.net/software/sextractor")
296 (synopsis "Extract catalogs of sources from astronomical images")
298 "SExtractor is a program that builds a catalogue of objects from an
299 astronomical image. Although it is particularly oriented towards reduction of
300 large scale galaxy-survey data, it can perform reasonably well on moderately
301 crowded star fields.")
302 (license license:gpl3+)))
304 (define-public skymaker
311 (uri (string-append "https://www.astromatic.net/download/skymaker/"
312 "skymaker-" version ".tar.gz"))
314 (base32 "03zvx7c89plp9559niqv5532r233kza3ir992rg3nxjksqmrqvx1"))))
315 (build-system gnu-build-system)
320 "--with-fftw-libdir=" (assoc-ref %build-inputs "fftw") "/lib")
322 "--with-fftw-incdir=" (assoc-ref %build-inputs "fftw") "/include"))))
325 (home-page "https://www.astromatic.net/software/skymaker")
326 (synopsis "Astronomical image simulator")
328 "SkyMaker is a program that simulates astronomical images. It accepts
329 object lists in ASCII generated by the Stuff program to produce realistic
330 astronomical fields. SkyMaker is part of the EFIGI
331 (@url{https://www.astromatic.net/projects/efigi}) development project.")
332 (license license:gpl3+)))
334 (define-public stellarium
341 (uri (string-append "https://github.com/Stellarium/stellarium"
342 "/releases/download/v" version
343 "/stellarium-" version ".tar.gz"))
345 (base32 "1253zlr0mi4kdbj119spxk7spg4rkahb4rlpd0hz1d81mnv3n0v3"))))
346 (build-system cmake-build-system)
349 ("qtlocation" ,qtlocation)
350 ("qtmultimedia" ,qtmultimedia)
351 ("qtscript" ,qtscript)
352 ("qtserialport" ,qtserialport)
355 `(("gettext" ,gettext-minimal) ; xgettext is used at compile time
356 ("perl" ,perl) ; for pod2man
357 ("qtbase" ,qtbase) ; Qt MOC is needed at compile time
358 ("qttools" ,qttools)))
360 `(#:test-target "test"
361 #:configure-flags (list "-DENABLE_TESTING=1"
363 "-DCMAKE_CXX_FLAGS=-isystem "
364 (assoc-ref %build-inputs "qtserialport")
366 #:phases (modify-phases %standard-phases
367 (add-before 'check 'set-offscreen-display
369 ;; Make Qt render "offscreen", required for tests.
370 (setenv "QT_QPA_PLATFORM" "offscreen")
371 (setenv "HOME" "/tmp")
373 (home-page "https://stellarium.org/")
374 (synopsis "3D sky viewer")
375 (description "Stellarium is a planetarium. It shows a realistic sky in
376 3D, just like what you see with the naked eye, binoculars, or a telescope. It
377 can be used to control telescopes over a serial port for tracking celestial
379 (license license:gpl2+)))
388 (uri (string-append "https://www.astromatic.net/download/stuff/"
389 "stuff-" version ".tar.gz"))
391 (base32 "1syibi3b86z9pikhicvkkmgxm916j732fdiw0agw0lq6z13fdcjm"))))
392 (build-system gnu-build-system)
393 (home-page "https://www.astromatic.net/software/stuff")
394 (synopsis "Astronomical catalogue simulation")
396 "Stuff is a program that simulates \"perfect\" astronomical catalogues.
397 It generates object lists in ASCII which can read by the SkyMaker program to
398 produce realistic astronomical fields. Stuff is part of the EFIGI development
400 (license license:gpl3+)))
409 (uri (string-append "https://www.astromatic.net/download/swarp/"
410 "swarp-" version ".tar.gz"))
412 (base32 "1i670waqp54vin1cn08mqckcggm9zqd69nk7yya2vvqpdizn6jpm"))))
413 (build-system gnu-build-system)
414 (home-page "https://www.astromatic.net/software/swarp")
415 (synopsis "FITS image resampling and co-addition")
417 "SWarp is a program that resamples and co-adds together FITS images using
418 any arbitrary astrometric projection defined in the WCS standard.")
419 (license license:gpl3+)))
421 (define-public celestia
422 (let ((commit "9dbdf29c4ac3d20afb2d9a80d3dff241ecf81dce"))
425 (version (git-version "1.6.1" "815" commit))
429 (url "https://github.com/celestiaproject/celestia")
431 (file-name (git-file-name name version))
434 "00xibg87l1arzifakgj7s828x9pszcgx7x7ij88a561ig49ryh78"))))
435 (build-system cmake-build-system)
439 ("pkg-config" ,pkg-config)
441 ("gettext" ,gettext-minimal)))
445 ("libtheora" ,libtheora)
446 ("libjpeg" ,libjpeg-turbo)
450 ;; optional: fmtlib, Eigen3;
453 ;; glut: for glut interface
454 ("freeglut" ,freeglut)))
458 `(#:configure-flags '("-DENABLE_GLUT=ON" "-DENABLE_QT=OFF")
459 #:tests? #f)) ;no tests
460 (home-page "https://celestia.space/")
461 (synopsis "Real-time 3D visualization of space")
463 "This simulation program lets you explore our universe in three
464 dimensions. Celestia simulates many different types of celestial objects.
465 From planets and moons to star clusters and galaxies, you can visit every
466 object in the expandable database and view it from any point in space and
467 time. The position and movement of solar system objects is calculated
468 accurately in real time at any rate desired.")
469 (license license:gpl2+))))
471 (define-public celestia-gtk
474 (name "celestia-gtk")
476 (append (alist-delete "freeglut" (package-inputs celestia))
478 ("gtkglext" ,gtkglext))))
480 `(#:configure-flags '("-DENABLE_GTK=ON" "-DENABLE_QT=OFF")
483 (define-public libnova
491 (url "https://git.code.sf.net/p/libnova/libnova.git")
492 (commit (string-append "v" version))))
493 (file-name (git-file-name name version))
496 "0icwylwkixihzni0kgl0j8dx3qhqvym6zv2hkw2dy6v9zvysrb1b"))))
497 (build-system gnu-build-system)
500 (modify-phases %standard-phases
501 (add-after 'unpack 'patch-git-version
503 (substitute* "./git-version-gen"
504 (("/bin/sh") (which "sh")))
507 `(("autoconf" ,autoconf)
508 ("automake" ,automake)
509 ("libtool" ,libtool)))
510 (synopsis "Celestial mechanics, astrometry and astrodynamics library")
511 (description "Libnova is a general purpose, double precision, Celestial
512 Mechanics, Astrometry and Astrodynamics library.")
513 (home-page "http://libnova.sourceforge.net/")
514 (license (list license:lgpl2.0+
515 license:gpl2+)))) ; examples/transforms.c & lntest/*.c
517 (define-public libpasastro
518 ;; NOTE: (Sharlatan-20210122T215921+0000): the version tag has a build
519 ;; error on spice which is resolved with the latest commit.
520 (let ((commit "e3c218d1502a18cae858c83a9a8812ab197fcb60")
524 (version (git-version "1.4.0" revision commit))
528 (url "https://github.com/pchev/libpasastro")
530 (file-name (git-file-name name version))
533 "0asp2sn34nds5va2ghppwc41vb6j3d1mf049j949rgrll817kx47"))))
534 (build-system gnu-build-system)
539 ,(match (or (%current-target-system) (%current-system))
540 ((or "aarch64-linux" "armhf-linux" "i686-linux" "x86_64-linux")
543 ,(match (or (%current-target-system) (%current-system))
544 ("i686-linux" "CPU_TARGET=i386")
545 ("x86_64-linux" "CPU_TARGET=x86_64")
546 ((or "armhf-linux" "aarch64-linux") "CPU_TARGET=armv7l")
548 (string-append "PREFIX=" (assoc-ref %outputs "out")))
550 (modify-phases %standard-phases
551 (delete 'configure))))
552 (home-page "https://github.com/pchev/libpasastro")
553 (synopsis "Interface to astronomy library for use from Pascal program")
555 "This package provides shared libraries to interface Pascal program with
556 standard astronomy libraries:
559 @item @code{libpasgetdss.so}: Interface with GetDSS to work with DSS images.
560 @item @code{libpasplan404.so}: Interface with Plan404 to compute planets position.
561 @item @code{libpaswcs.so}: Interface with libwcs to work with FITS WCS.
562 @item @code{libpasspice.so}: To work with NAIF/SPICE kernel.
564 (license license:gpl2+))))
566 (define-public missfits
573 (uri (string-append "https://www.astromatic.net/download/missfits/"
574 "missfits-" version ".tar.gz"))
576 (base32 "04jrd7fsvzr14vdmwgj2f6v97gdcfyjyz6jppml3ghr9xh12jxv5"))))
577 (build-system gnu-build-system)
578 (home-page "https://www.astromatic.net/software/missfits")
579 (synopsis "FITS files Maintenance program")
581 "MissFITS is a program that performs basic maintenance and packaging tasks
585 @item add/edit FITS header keywords
586 @item split/join Multi-Extension-FITS (MEF) files
587 @item unpack/pack FITS data-cubes
588 @item create/check/update FITS checksums, using R. Seaman's protocol
589 (see http://www.adass.org/adass/proceedings/adass94/seamanr.html)
591 (license license:gpl3+)))
593 (define-public xplanet
602 "mirror://sourceforge/xplanet/xplanet/"
603 version "/xplanet-" version ".tar.gz"))
605 (base32 "1rzc1alph03j67lrr66499zl0wqndiipmj99nqgvh9xzm1qdb023"))
608 "xplanet-1.3.1-cxx11-eof.patch"
609 "xplanet-1.3.1-libdisplay_DisplayOutput.cpp.patch"
610 "xplanet-1.3.1-libimage_gif.c.patch"
611 "xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch"))))
612 (build-system gnu-build-system)
614 `(("pkg-config" ,pkg-config)))
617 ("libxscrnsaver" ,libxscrnsaver)
619 ("freetype" ,freetype)
622 ("libjpeg" ,libjpeg-turbo)
629 (let ((netpbm (assoc-ref %build-inputs "netpbm")))
631 ;; Give correct path for pnm.h header to configure script
632 (string-append "CPPFLAGS=-I" netpbm "/include/netpbm")
633 ;; no nasa jpl cspice support
634 "--without-cspice" )))))
635 (home-page "http://xplanet.sourceforge.net/")
636 (synopsis "Planetary body renderer")
638 "Xplanet renders an image of a planet into an X window or file.
639 All of the major planets and most satellites can be drawn and different map
640 projections are also supported, including azimuthal, hemisphere, Lambert,
641 Mercator, Mollweide, Peters, polyconic, orthographic and rectangular.")
642 (license license:gpl2+)))
644 (define-public gpredict
651 (uri (string-append "https://github.com/csete/gpredict/releases"
652 "/download/v" version
653 "/gpredict-" version ".tar.bz2"))
655 (base32 "0hwf97kng1zy8rxyglw04x89p0bg07zq30hgghm20yxiw2xc8ng7"))))
656 (build-system gnu-build-system)
658 `(("intltool" ,intltool)
659 ("gettext" ,gettext-minimal)
660 ("pkg-config" ,pkg-config)))
664 ("goocanvas" ,goocanvas)
668 (modify-phases %standard-phases
669 (add-after 'unpack 'fix-tests
671 ;; Remove reference to non-existent file.
672 (substitute* "po/POTFILES.in"
673 (("src/gtk-sat-tree\\.c")
676 (synopsis "Satellite tracking and orbit prediction application")
678 "Gpredict is a real-time satellite tracking and orbit prediction
679 application. It can track a large number of satellites and display their
680 position and other data in lists, tables, maps, and polar plots (radar view).
681 Gpredict can also predict the time of future passes for a satellite, and
682 provide you with detailed information about each pass.")
683 (home-page "http://gpredict.oz9aec.net/index.php")
684 (license license:gpl2+)))
694 (url "https://github.com/indilib/indi")
695 (commit (string-append "v" version))))
696 (file-name (git-file-name name version))
698 (base32 "19gm7rbnm3295g2i8mdzfslpz0vrcgfmbl59311qpszvlxbmyd2r"))))
699 (build-system cmake-build-system)
702 (let ((out (assoc-ref %outputs "out")))
704 "-DINDI_BUILD_UNITTESTS=ON"
705 "-DCMAKE_BUILD_TYPE=Release"
706 (string-append "-DCMAKE_INSTALL_PREFIX=" out)
707 (string-append "-DUDEVRULES_INSTALL_DIR=" out "/lib/udev/rules.d")))
709 (modify-phases %standard-phases
716 (add-before 'install 'set-install-directories
717 (lambda* (#:key outputs #:allow-other-keys)
718 (let ((out (assoc-ref outputs "out")))
719 (mkdir-p (string-append out "/lib/udev/rules.d")))
722 `(("googletest" ,googletest)))
724 `(("cfitsio" ,cfitsio)
728 ("libjpeg-turbo" ,libjpeg-turbo)
733 (home-page "https://www.indilib.org")
734 (synopsis "Library for astronimical intrumentation control")
736 "INDI (Instrument-Neutral Device Interface) is a distributed XML-based
737 control protocol designed to operate astronomical instrumentation. INDI is
738 small, flexible, easy to parse, scalable, and stateless. It supports common
739 DCS functions such as remote control, data acquisition, monitoring, and a lot
741 (license (list license:bsd-3
746 (define-public python-jplephem
748 (name "python-jplephem")
753 (uri (pypi-uri "jplephem" version))
755 (base32 "1ca3dswsslij79qg6dcijjz4l0fj6nzmxld8z93v45ahlkhps0g0"))))
756 (build-system python-build-system)
759 (modify-phases %standard-phases
761 (lambda* (#:key outputs #:allow-other-keys)
762 (let ((out (assoc-ref outputs "out")))
764 (string-append "./build/lib:"
765 (getenv "PYTHONPATH")))
766 (setenv "PATH" (string-append out "/bin:"
768 (invoke "python" "-m" "unittest" "discover" "-s" "test")))))))
770 `(("python-numpy" ,python-numpy)))
771 (home-page "https://github.com/brandon-rhodes/python-jplephem")
772 (synopsis "Python version of NASA DE4xx ephemerides")
774 "The package is a Python implementation of the mathematics that standard
775 JPL ephemerides use to predict raw (x,y,z) planetary positions.")
776 (license license:expat)))
778 (define-public python-pyerfa
780 (name "python-pyerfa")
785 (uri (pypi-uri "pyerfa" version))
787 (base32 "1s78mdyrxha2jcckfs0wg5ynkf0pwh1bw9mmh99vprinxh9n4xri"))
788 (modules '((guix build utils)))
791 ;; Remove bundled submodule library.
792 (delete-file-recursively "liberfa")
794 (build-system python-build-system)
797 (modify-phases %standard-phases
798 (add-before 'build 'use-system-liberfa
800 (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1")
803 `(("pytest" ,python-pytest)
804 ("setuptools-scm" ,python-setuptools-scm)
805 ("pytest-doctestplus" ,python-pytest-doctestplus)))
808 ("numpy" ,python-numpy)))
809 (home-page "https://github.com/liberfa/pyerfa")
810 (synopsis "Python bindings for ERFA")
812 "PyERFA is the Python wrapper for the ERFA library (Essential
813 Routines for Fundamental Astronomy), a C library containing key algorithms for
814 astronomy, which is based on the SOFA library published by the International
815 Astronomical Union (IAU). All C routines are wrapped as Numpy universal
816 functions, so that they can be called with scalar or array inputs.")
817 (license license:bsd-3)))
819 (define-public python-sep
826 (uri (pypi-uri "sep" version))
828 (base32 "0wxdqn92q1grv8k7xi7h88ac6wnznw4xh5bdlz1vz6za2dgsyj4m"))))
829 (build-system python-build-system)
831 `(("cython" ,python-cython)
832 ("pytest" ,python-pytest)))
834 `(("numpy" ,python-numpy)))
835 (home-page "https://github.com/kbarbary/sep")
836 (synopsis "Astronomical source extraction and photometry library")
838 "SEP makes the core algorithms of Source Extractor available as a library
839 of stand-alone functions and classes.")
840 (license (list license:bsd-3
844 (define-public python-astroalign
846 (name "python-astroalign")
851 (uri (pypi-uri "astroalign" version))
853 (base32 "19qzv3552lgrd9qmj0rxs51wmx485hw04cbf76ds5pin85kfaiy1"))))
854 (build-system python-build-system)
856 ;; TODO: (Sharlatan-20210213T162940+0000): I could not make tests run
859 `(("numpy" ,python-numpy)
860 ("scikit-image" ,python-scikit-image)
861 ("scipy" ,python-scipy)
862 ("sep" ,python-sep)))
863 (home-page "https://astroalign.readthedocs.io/")
864 (synopsis "Astrometric Alignment of Images")
866 "ASTROALIGN is a python module that will try to align two stellar
867 astronomical images, especially when there is no WCS information available.")
868 (license license:expat)))
870 (define-public python-skyfield
872 (name "python-skyfield")
877 (uri (pypi-uri "skyfield" version))
879 (base32 "1dm1327a4qv3klj9blrvddbhl72v1fqz52ym9km8qjj9vdkpywh6"))))
880 (build-system python-build-system)
882 ;; NOTE: (Sharlatan-20210207T163305+0000): tests depend on custom test
883 ;; framework https://github.com/brandon-rhodes/assay
886 `(("certifi" ,python-certifi)
887 ("jplephem" ,python-jplephem)
888 ("numpy" ,python-numpy)
889 ("sgp4" ,python-sgp4)))
890 (home-page "https://rhodesmill.org/skyfield/")
891 (synopsis "Astronomy for Python")
893 "Skyfield computes positions for the stars, planets, and satellites in
894 orbit around the Earth.")
895 (license license:expat)))