gnu: Add python-halotools.

* gnu/packages/astronomy.scm (python-halotools): New variable.

Change-Id: Ia7907d0988738fe37835d2f02310ae74bba37e0a
This commit is contained in:
Sharlatan Hellseher 2024-10-10 21:25:09 +01:00
parent 465b17b74a
commit 5368eff866
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2114,6 +2114,51 @@ across many files.")
(description "Multidimensional data visualization across files.")
(license license:bsd-3)))
(define-public python-halotools
(package
(name "python-halotools")
(version "0.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "halotools" version))
(sha256
(base32 "1fn74ljb4yv3nprgzaf9awiyjdvkmzf1a1n2kvajbax835qcs3bz"))))
(build-system pyproject-build-system)
(arguments
(list
;; Tests are shaky in parallel.
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'build-extensions
(lambda _
(setenv "HOME" "/tmp")
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs
(list python-cython-3
python-extension-helpers
python-pytest
python-pytest-astropy
python-setuptools
python-setuptools-scm
python-wheel))
(propagated-inputs
(list python-astropy
python-beautifulsoup4
python-h5py
python-numpy
python-requests
python-scipy))
(home-page "http://halotools.rtfd.org/")
(synopsis "N-body simulations and constrain models of cosmology evolution")
(description
"Halotools is a specialized python package for building and testing
models of the galaxy-halo connection, and analyzing catalogs of dark matter
halos. The core feature of Halotools is a modular platform for creating mock
universes of galaxies starting from a catalog of dark matter halos obtained
from a cosmological simulation.")
(license license:bsd-3)))
(define-public python-healpy
(package
(name "python-healpy")