guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

40/46: gnu: Add python-extinction.


From: guix-commits
Subject: 40/46: gnu: Add python-extinction.
Date: Tue, 27 Feb 2024 17:55:22 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 691a732cfdc823ec6afaec500cae980e4f6b248d
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Jan 29 12:30:33 2024 +0000

    gnu: Add python-extinction.
    
    * gnu/packages/astronomy.scm (python-extinction): New variable.
    
    Change-Id: I0f8877f8c79f6dd03150d92269c238cd706cc0ba
---
 gnu/packages/astronomy.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 6324d941a8..d4c731a797 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2114,6 +2114,32 @@ for a table giving the position of a planet, asteroid, 
or comet for a series
 of dates.")
     (license license:expat)))
 
+(define-public python-extinction
+  (package
+    (name "python-extinction")
+    (version "0.4.6")
+    (source
+     (origin
+       (method git-fetch) ; No tests in PyPI
+       (uri (git-reference
+             (url "https://github.com/kbarbary/extinction";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1adxq926jd469mxm6llvsljgf2jqb06905h61i9qzc7m2yrm4wga"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags #~(list "test.py")))
+    (native-inputs (list python-cython python-pytest))
+    (propagated-inputs (list python-numpy))
+    (home-page "http://github.com/kbarbary/extinction";)
+    (synopsis "Fast interstellar dust extinction laws")
+    (description
+     "This package provides a cython-optimized implementations of empirical 
dust
+exitinction laws found in the literature.")
+    (license license:expat)))
+
 (define-public python-hvpy
   (package
     (name "python-hvpy")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]