guix_mirror_bot pushed a commit to branch astro-updates in repository guix.
commit d2402fcaeb43e266751b79111e3341905ff45c0a Author: Sharlatan Hellseher <[email protected]> AuthorDate: Fri Oct 17 09:28:28 2025 +0100 gnu: Add python-pyirf. * gnu/packages/astronomy.scm (python-pyirf): New variable. Change-Id: I0fa0f4320202e4eba6c5433d16732e82bb3cef9e --- gnu/packages/astronomy.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 831f1a6925..6ec348af0f 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -6603,6 +6603,49 @@ also transltes halo properties (mass, concentration, redshift, etc) into angular units for lensing computations with lenstronomy.") (license license:expat))) +(define-public python-pyirf + (package + (name "python-pyirf") + (version "0.13.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyirf" version)) + (sha256 + (base32 "17z8czdqk6c742ww9274x9inx0q201908la0i27gv7r1496l0l0b")))) + (build-system pyproject-build-system) + (arguments + (list + ;; It fails to load optional Gammapy, remove when it's packaged. + #:test-flags + #~(list "--ignore=pyirf/io/tests/test_gadf.py" + ;; fixture 'prod5_irfs' not found + "-k" (string-append "not test_EnergyDispersionEstimator" + " and not test_EffectiveAreaEstimator_prod5")) + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (delete-file "pyirf/conftest.py")))))) + (native-inputs + (list python-ogadf-schema + python-pytest + python-setuptools + python-setuptools-scm)) + (propagated-inputs + (list python-astropy + ;; python-gammapy ;not packaged yet in Guix + python-numpy + python-packaging + python-scipy + python-tqdm)) + (home-page "https://github.com/cta-observatory/pyirf") + (synopsis "Python IRF builder") + (description + "This package provides a python library to calculate IACT IRFs +and Sensitivities.") + (license license:expat))) + (define-public python-pynbody (package (name "python-pynbody")
