aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-09-20 22:43:09 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-09-30 22:06:32 +0100
commit5ca47c7d8d225195dc184e0ff7ec8f1fcca6c5bd (patch)
treef5d1e7ff7581247a0861d6003b1cfeaedb2dbb11 /gnu
parent87bc80efcd0834b03af60aec843f122be5b9ba5a (diff)
downloadguix-5ca47c7d8d225195dc184e0ff7ec8f1fcca6c5bd.tar
guix-5ca47c7d8d225195dc184e0ff7ec8f1fcca6c5bd.tar.gz
gnu: Add python-healpy.
* gnu/packages/astronomy.scm (python-healpy): New variable. Change-Id: I471145f504d4e8d7a2611a6a1fd3c4f0d0472033
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/astronomy.scm59
1 files changed, 59 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index c6791c8c21..9ffe1f5978 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1428,6 +1428,65 @@ across many files.")
(description "Multidimensional data visualization across files.")
(license license:bsd-3)))
+(define-public python-healpy
+ (package
+ (name "python-healpy")
+ ;; The latest version depends on custom fork of HEALPix with changes not
+ ;; ported to upstream yet, see
+ ;; <https://github.com/healpy/healpy/issues/949>.
+ (version "1.16.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "healpy" version))
+ (sha256
+ (base32 "1w99cgszh2mzcn5x8p0gdzn3r96vyfdnvbwm20a1l9fdiy16xcha"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; Disable tests requiring network access.
+ #~(list "-k" (string-append "not test_astropy_download_file"
+ " and not test_pixelweights_local_datapath"
+ " and not test_rotate_map_polarization_alms"))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: It's not compatible with pytest-8, enable when newer version
+ ;; is available.
+ (add-after 'unpack 'disable-doctest
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("--doctest-plus") ""))))
+ (add-before 'check 'build-extensions
+ (lambda _
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ (native-inputs
+ (list nss-certs-for-test
+ pkg-config
+ python-cython-3
+ python-pytest-8
+ python-pytest-astropy-header
+ python-pytest-cython
+ ;python-pytest-doctestplus
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-astropy
+ python-colorlog
+ python-matplotlib
+ python-numpy
+ python-scipy))
+ (inputs
+ (list cfitsio
+ healpix-cxx
+ libsharp))
+ (home-page "http://healpy.readthedocs.org/")
+ (synopsis "Healpix tools package for Python")
+ (description
+ "healpy is a Python package to handle pixelated data on the sphere. It
+is based on the Hierarchical Equal Area isoLatitude Pixelization (HEALPix)
+scheme and builds with the HEALPix C++ library.")
+ (license license:gpl2+)))
+
(define-public python-pvextractor
(package
(name "python-pvextractor")