guix-commits
[Top][All Lists]
Advanced

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

42/46: gnu: Add python-radiospectra.


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

sharlatan pushed a commit to branch master
in repository guix.

commit adb9dc2a67f57e7c2570e5cb075316b3ce2a5d28
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Jan 29 13:13:48 2024 +0000

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

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index f6b58a5a87..03d43e5a06 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4600,6 +4600,43 @@ channels
 @end itemize")
     (license license:bsd-3)))
 
+(define-public python-radiospectra
+  (package
+    (name "python-radiospectra")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "radiospectra" version))
+       (sha256
+        (base32 "0gq61ywk7li0gxwmp4hp2hc4zbrlqgn8zy0sz24qh55kn5l5gxjr"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'set-home-env
+            (lambda _
+              ;; Tests require HOME to be set.
+              ;;  Permission denied: '/homeless-shelter'
+              (setenv "HOME" "/tmp"))))))
+    (propagated-inputs
+     (list python-cdflib
+           python-matplotlib
+           python-numpy
+           python-scipy
+           python-sunpy))
+    (native-inputs
+     (list python-pytest-astropy
+           python-setuptools-scm
+           python-sunpy-soar))
+    (home-page "https://docs.sunpy.org/projects/radiospectra";)
+    (synopsis "Support for radio spectra on solar physics")
+    (description
+     "@code{radiospectra} provides support for some type of radio spectra in
+solar physics.")
+    (license license:bsd-2)))
+
 (define-public python-roman-datamodels
   (package
     (name "python-roman-datamodels")



reply via email to

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