guix_mirror_bot pushed a commit to branch astro-update
in repository guix.

commit 6d66221e5af04ac887a01362ee145b7346b1fd9b
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Jan 14 11:03:23 2026 +0000

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

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 93106bbe94..c9279524f0 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -5560,6 +5560,43 @@ information, kinematics constraints and standardizable 
magnifications with
 parameters described on the ensemble level.")
     (license license:bsd-3)))
 
+(define-public python-hissw
+  (package
+    (name "python-hissw")
+    (version "2.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/wtbarnes/hissw";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1fcd4m7m34g7b6higdxy58aw7dbjqh7wfzn82zv72vzy4rayi1qc"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #f))        ;they need local installation of IDL
+    (native-inputs
+     (list python-setuptools))
+    (propagated-inputs
+     (list python-jinja2
+           python-scipy))
+    (home-page "https://github.com/wtbarnes/hissw";)
+    (synopsis "Seamlessly integrate SSWIDL code into Python workflow")
+    (description
+     "@code{hissw} (hiss (like a snake) + @url{http://www.lmsal.com/solarsoft/,
+@acronym{SSW, SolarSoftware }}) is a (VERY) lightweight (~1 file) Python
+package that helps one to write IDL scripts (either inline or in a separate
+file) which use your installed SSW packages and return the results to local
+Python namespace.  @code{hissw} uses @code{Jinja2} templates to generate SSW
+startup scripts and then runs IDL code using @code{subprocess}, i.e. the
+shell.  Jinja2 syntax may be used to inject arguments from Python into IDL.
+The results are then saved to a file and then loaded back in using the amazing
+@code{readsav()} function in
+@url{https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.io.readsav.html,
+scipy.io}.")
+    (license license:expat)))
+
 (define-public python-holodeck
   (package
     (name "python-holodeck")

Reply via email to