[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: Add python-pyregion.
From: |
guix-commits |
Subject: |
03/07: gnu: Add python-pyregion. |
Date: |
Tue, 31 Oct 2023 13:16:12 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 4b1dce71855c8338e8045d31277db2a55cf3bddd
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Oct 11 02:39:33 2023 +0100
gnu: Add python-pyregion.
* gnu/packages/astronomy.scm (python-pyregion): New variable.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/astronomy.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ded7859133..dffeceebf1 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3494,6 +3494,46 @@ astrophysical simulations supporting PKDGRAV/Gasoline,
Gadget, Gadget4/Arepo,
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")
- branch master updated (5e7f27d6ca -> d96a9c7473), guix-commits, 2023/10/31
- 03/07: gnu: Add python-pyregion.,
guix-commits <=
- 01/07: gnu: Add python-radio-beam., guix-commits, 2023/10/31
- 07/07: gnu: python-radio-beam: Update to 0.3.6., guix-commits, 2023/10/31
- 04/07: gnu: Add python-aplpy., guix-commits, 2023/10/31
- 02/07: gnu: Add python-pyavm., guix-commits, 2023/10/31
- 05/07: gnu: Add python-spectral-cube., guix-commits, 2023/10/31
- 06/07: gnu: python-spectral-cube: Update to 0.6.3., guix-commits, 2023/10/31