guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 58fbb2f3705df1670fcbee8f7b398926f64de2c1
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Jan 3 23:28:24 2026 +0000

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

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 3fdbbff232..6abffa0d2e 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -9637,6 +9637,35 @@ science instruments plus the fine guidance sensor, 
including both direct
 imaging, coronagraphic, and spectroscopic modes.")
     (license license:bsd-3)))
 
+(define-public python-stregion
+  (package
+    (name "python-stregion")
+    (version "1.1.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "stregion" version))
+       (sha256
+        (base32 "0clcv76x8pj61dvyh9pa6gp3kskc9g11i1fi559ax2qa2pgqhh1n"))))
+    (build-system pyproject-build-system)
+    (arguments
+     ;; AttributeError: module 'astropy.io.fits' has no attribute 'CardList'
+     ;; AttributeError: 'WCS' object has no attribute 'wcs_pix2sky'
+     (list #:tests? #f)) ;depends on deprecated Astropy functions
+    (native-inputs
+     (list python-cython
+           python-setuptools
+           python-setuptools-scm))
+    (propagated-inputs
+     (list python-numpy
+           python-pyparsing))
+    (home-page "https://github.com/spacetelescope/stregion";)
+    (synopsis "Python parser for DS9 region files")
+    (description
+     "This package implements a functionality to parse
+@url{https://github.com/SAOImageDS9/SAOImageDS9, DS9} region files.")
+    (license license:expat)))
+
 (define-public python-stsci-image
   (package
     (name "python-stsci-image")

Reply via email to