Subject: [bug#74497] [PATCH 06/46] gnu: Add python-cosmopy.

From: Sharlatan Hellseher <[email-masked]>
Date: Sat, 23 Nov 2024 19:50:53 +0000

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

Change-Id: I31e54ff51a2f18091baba449da3b00cdf5088b15
---
 gnu/packages/astronomy.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index cac446a6a3..c85c00f8e2 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2013,6 +2013,34 @@ (define-public python-coolest
 lens models possibly obtained from different modeling codes.")
     (license  license:gpl3)))
 
+(define-public python-cosmopy
+  (package
+    (name "python-cosmopy")
+    (version "3.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "cosmopy" version))
+       (sha256
+        (base32 "16xlg0vyzdx1h5h28y8az48nhiqvx43yd9s30g3rk9ywl4r1j6h8"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-wheel))
+    (propagated-inputs
+     (list python-astropy
+           python-click
+           python-future
+           python-numpy
+           python-scipy))
+    (home-page "https://github.com/lzkelley/cosmopy")
+    (synopsis "Cosmological calculator in Python")
+    (description
+     "This package provides a CLI and Python module to quickly calculate
+cosmological parameters e.g. redshift or luminosity-distance.")
+    (license license:expat)))
+
 (define-public python-czml3
   (package
     (name "python-czml3")
-- 
2.46.0