From 888d47f8ee37540070ff8c955a005bd3b437c6d9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 14 Apr 2026 14:36:45 +0100 Subject: gnu: Add python-lephare. * gnu/packages/astronomy.scm (python-lephare): New variable. Change-Id: I1286618f925c2c5e861d1d581d64178afff8e004 --- gnu/packages/astronomy.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index a1d737ba92..1ad65a407f 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -6656,6 +6656,47 @@ quantification of galaxies, quasar-host galaxy decomposition and much more.") (native-inputs (list python-setuptools)))) +(define-public python-lephare + (package + (name "python-lephare") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lephare" version)) + (sha256 + (base32 "1nkd807kl2xg25iwb5wj380pxlvrd9abdaznaw5if3qjmjkjx86s")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Network access is required to reach . + #~(list "--deselect=tests/lephare/test_data_retrieval.py::test_get_auxiliary_data" + "--deselect=tests/lephare/test_filter.py::test_filtersvc") + #:phases + '(modify-phases %standard-phases + (add-before 'sanity-check 'set-HOME + (lambda _ (setenv "HOME" "/tmp")))))) + (native-inputs + (list cmake-minimal + python-pytest + python-setuptools)) + (propagated-inputs + (list python-astropy + python-matplotlib + python-numpy + python-platformdirs + python-pooch + python-requests + python-scipy + python-wurlitzer)) + (home-page "https://lephare.readthedocs.io/en/latest/") + (synopsis "Photometric redshift estimator") + (description + "LePHARE is a code for estimating galaxy redshifts and physical parameters +using template fitting.") + (license license:expat))) + (define-public python-libstempo (package (name "python-libstempo") -- cgit v1.3