unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 66454@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Andreas Enge <andreas@enge.fr>,
	Efraim Flashner <efraim@flashner.co.il>,
	Eric Bavier <bavier@posteo.net>
Subject: [bug#66454] [PATCH 3/5] gnu: Add python-pyregion.
Date: Wed, 11 Oct 2023 02:39:33 +0100	[thread overview]
Message-ID: <e6932687c9c729614823ec5623632d146126213d.1696987806.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1696987806.git.sharlatanus@gmail.com>

* gnu/packages/astronomy.scm (python-pyregion): New variable.
---
 gnu/packages/astronomy.scm | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 2f059236b9..684324c589 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3449,6 +3449,46 @@ (define-public python-pynbody
 N-Chilada and RAMSES AMR outputs.")
     (license license:gpl3+)))
 
+(define-public python-pyregion
+  (package
+    (name "python-pyregion")
+    (version "2.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pyregion" version))
+       (sha256
+        (base32 "0l7qb7r8fnv46mdih4m5b8jaxixgpw6m7v37dpikjkblgh0vigaw"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'build-extensions
+            (lambda _
+              ;; Cython extensions have to be built before running the tests.
+              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+    (propagated-inputs
+     (list python-astropy python-numpy python-pyparsing))
+    (native-inputs
+     (list python-cython
+           python-pytest
+           python-pytest-astropy-header
+           python-setuptools-scm))
+    (home-page "https://github.com/astropy/pyregion")
+    (synopsis "Python parser for ds9 region files")
+    (description
+     "@code{pyregion} is a python module to parse ds9 region files.  It also
+supports ciao region files.
+Features:
+@itemize
+@item ds9 and ciao region files.
+@item (physical, WCS) coordinate conversion to the image coordinate.
+@item convert regions to matplotlib patches.
+@item convert regions to spatial filter (i.e., generate mask images)
+@end itemize")
+    (license license:expat)))
+
 (define-public python-pysynphot
   (package
     (name "python-pysynphot")
-- 
2.41.0





  parent reply	other threads:[~2023-10-10 22:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-11  1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
2023-10-11  1:39 ` [bug#66454] [PATCH 1/5] gnu: Add python-radio-beam Sharlatan Hellseher
2023-10-11  1:39 ` [bug#66454] [PATCH 2/5] gnu: Add python-pyavm Sharlatan Hellseher
2023-10-11  1:39 ` Sharlatan Hellseher [this message]
2023-10-11  1:39 ` [bug#66454] [PATCH 4/5] gnu: Add python-aplpy Sharlatan Hellseher
2023-10-11  1:39 ` [bug#66454] [PATCH 5/5] gnu: Add python-spectral-cube Sharlatan Hellseher
2023-10-15 18:17 ` [bug#66454] Sharlatan Hellseher
2023-10-15 18:21   ` [bug#66454] Christopher Baines
2023-10-21 23:00 ` [bug#66454] Sharlatan Hellseher
2023-10-27 17:41 ` [bug#66454] Sharlatan Hellseher
2023-10-31 17:19   ` bug#66454: none Maxim Cournoyer
2023-10-31 20:26     ` [bug#66454] none Sharlatan Hellseher
2023-11-01  3:02       ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e6932687c9c729614823ec5623632d146126213d.1696987806.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=66454@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=bavier@posteo.net \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).