[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: Add python-astropy-healpix.
From: |
guix-commits |
Subject: |
06/08: gnu: Add python-astropy-healpix. |
Date: |
Tue, 25 Jan 2022 17:56:54 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit fb12d6b48eb527a0d09011bd1f6a7fea1f5d2c49
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Jan 9 04:38:39 2022 +0000
gnu: Add python-astropy-healpix.
* gnu/packages/astronomy.scm (python-astropy-healpix): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/astronomy.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ee65fbf2c5..1573003c7e 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -706,6 +706,45 @@ much of the core functionality and some common tools
needed for performing
astronomy and astrophysics.")
(license license:bsd-3)))
+(define-public python-astropy-healpix
+ (package
+ (name "python-astropy-healpix")
+ (version "0.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "astropy-healpix" version))
+ (sha256
+ (base32 "1436ml03xkmvx4afzbhfj67ab91418sz1w3lq1b18r43qchnd6j0"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; This file is opened in both install and check phases.
+ (add-before 'install 'writable-compiler
+ (lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
+ (add-before 'check 'writable-compiler
+ (lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ ;; Extensions have to be rebuilt before running the tests.
+ (invoke "python" "setup.py" "build_ext" "--inplace")
+ (invoke "python" "-m" "pytest"
+ "--pyargs" "astropy_healpix")))))))
+ (native-inputs
+ (list python-extension-helpers
+ python-hypothesis
+ python-pytest-astropy
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-astropy python-numpy))
+ (home-page "https://github.com/astropy/astropy-healpix")
+ (synopsis "HEALPix for Astropy")
+ (description "This package provides HEALPix to the Astropy project.")
+ (license license:bsd-3)))
+
(define-public python-astroquery
(package
(name "python-astroquery")
- branch master updated (c0139a595b -> ebac201995), guix-commits, 2022/01/25
- 01/08: environment: '--check' does nothing when used with '--container'., guix-commits, 2022/01/25
- 04/08: gnu: Add python-pyvo., guix-commits, 2022/01/25
- 03/08: doc: Document 'invoke' & co., guix-commits, 2022/01/25
- 02/08: build: Require Guile >= 3.0.3., guix-commits, 2022/01/25
- 07/08: gnu: Add python-photutils., guix-commits, 2022/01/25
- 05/08: gnu: Add python-astroquery., guix-commits, 2022/01/25
- 08/08: gnu: Add python-regions., guix-commits, 2022/01/25
- 06/08: gnu: Add python-astropy-healpix.,
guix-commits <=