guix_mirror_bot pushed a commit to branch astro-update
in repository guix.
commit 40f8318fd26d18199f4782350777ca48a0700ae8
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Jan 14 13:36:58 2026 +0000
gnu: Add python-halo-analysis.
* gnu/packages/astronomy.scm (python-halo-analysis): New variable.
Change-Id: I935894c576647c0979600fbc9096f90d2195c012
---
gnu/packages/astronomy.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 4d2a864ad7..78af361848 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -5373,6 +5373,44 @@ default) to world coordinates.")
(replace "python-astropy" python-astropy-6)
(replace "python-asdf" python-asdf-3)))))
+(define-public python-halo-analysis
+ (package
+ (name "python-halo-analysis")
+ (version "1.0.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "halo_analysis" version))
+ (sha256
+ (base32 "072s29b73591n26r3i67wflh5sh67bjrnch6wi691v871xcpr4rl"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f ;no tests in PyPI or Git
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-home
+ (lambda _
+ ;; There is a silent error during sanity-check: mkdir -p failed
+ ;; for path /homeless-shelter/.config/matplotlib: [Errno 13]
+ ;; Permission denied: '/homeless-shelter'
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-h5py
+ python-matplotlib
+ python-numpy
+ python-scipy
+ python-utilities-awetzel))
+ (home-page "https://bitbucket.org/awetzel/halo_analysis/src/master/" )
+ (synopsis "Read and analyze halo/galaxy catalogs")
+ (description
+ "This package implements a functionality to read and analyze halo/galaxy
+ catalogs (generated from Rockstar or AHF) and merger trees (generated from
+ConsistentTrees).")
+ (license license:expat)))
+
(define-public python-halotools
(package
(name "python-halotools")