From d7245f0852a1a2f39bdba277b4287e2a753955a6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 26 Apr 2021 20:52:09 +0100 Subject: [PATCH 1/6] gnu: Add python-astropy. * gnu/packages/astronomy.scm (python-astropy): New variable. --- gnu/packages/astronomy.scm | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 6d1c4ddfe6..b32f3f7cf5 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -547,6 +547,54 @@ accurately in real time at any rate desired.") `(#:configure-flags '("-DENABLE_GTK=ON" "-DENABLE_QT=OFF") #:tests? #f)))) +(define-public python-astropy + (package + (name "python-astropy") + (version "4.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "astropy" version)) + (sha256 + (base32 "09w4q64c6bykcdp8xdq5fgsdjqrcihqhqjszqjp3s5a1493kwj7d")))) + (build-system python-build-system) + (arguments + ;; NOTE: (Sharlatan-20210426T204315+0100): Tests require build astropy + ;; module, it needs a good review on how to enable them. + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'setenv-astropy-system-all + (lambda _ + (setenv "ASTROPY_USE_SYSTEM_ALL" "1"))) + ;; Permission denied: './astropy/_compiler.c'. + (add-before 'install 'writable-compiler + (lambda _ (make-file-writable "astropy/_compiler.c")))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("python-coverage" ,python-coverage) + ("python-cython" ,python-cython) + ("python-extension-helpers" ,python-extension-helpers) + ("python-ipython" ,python-ipython) + ("python-objgraph" ,python-objgraph) + ("python-setuptools-scm" ,python-setuptools-scm) + ("python-sgp4" ,python-sgp4) + ("python-skyfield" ,python-skyfield))) + (inputs + `(("cfitsio" ,cfitsio) + ("wcslib" ,wcslib))) + (propagated-inputs + `(("python-numpy" ,python-numpy) + ("python-pyerfa" ,python-pyerfa))) + (home-page "https://www.astropy.org/") + (synopsis "Core package for Astronomy in Python") + (description + "Astropy is a single core package for Astronomy in Python. It contains +much of the core functionality and some common tools needed for performing +astronomy and astrophysics.") + (license (list license:bsd-3 ;astropy + license:expat)))) ;jquery + (define-public libnova (package (name "libnova") -- 2.31.1