From e4a64fe526c43849aa4f8611a54fe3b5e3861c21 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 20 Aug 2024 23:16:58 +0100 Subject: [PATCH] gnu: Add python-zodipy. * gnu/packages/astronomy.scm (python-zodipy): New variable. Change-Id: I15a7603330ee0ca19ec6073ac312e15f44db1a2b --- gnu/packages/astronomy.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 75b21ae331..a77781175b 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -6017,6 +6017,46 @@ (define-public python-yt-astro-analysis @end itemize") (license (list license:bsd-3 license:lgpl3)))) +(define-public python-zodipy + (package + (name "python-zodipy") + (version "1.0.0") + (source + (origin + (method git-fetch) ;; no tests in the PyPI tarball + (uri (git-reference + (url "https://github.com/Cosmoglobe/zodipy") + (commit (string-append "v." version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08hwicpv3wfpccr2cj1vxb8iy7av12yjs3prq0zw7qc89imrgrbn")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + ;; numpy = "^1.26.4" + (("1.26.4") "1.23.2") + ;; scipy = "^1.13.0" + (("1.13.0") "1.12.0"))))))) + (propagated-inputs + (list python-astropy + python-jplephem + python-numpy + python-scipy)) + (native-inputs + (list python-poetry-core + python-pytest)) + (home-page "https://github.com/Cosmoglobe/zodipy") + (synopsis "Zodiacal emission simulations") + (description + "ZodiPy is an package for simulating zodiacal light in intensity for +arbitrary solar system observers.") + (license license:gpl3+))) + (define-public qfits (package (name "qfits")