[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72741] [PATCH 28/32] gnu: Add python-pvextractor.
From: |
Sharlatan Hellseher |
Subject: |
[bug#72741] [PATCH 28/32] gnu: Add python-pvextractor. |
Date: |
Wed, 21 Aug 2024 01:03:30 +0100 |
* gnu/packages/astronomy.scm (python-pvextractor): New variable.
Change-Id: I43589099c662cd73ac234a8581be6a559d2ddd6c
---
gnu/packages/astronomy.scm | 48 ++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index fe74008f7e..38f9db1c8c 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1237,6 +1237,54 @@ (define-public python-glue-core
across many files.")
(license license:bsd-3)))
+(define-public python-pvextractor
+ (package
+ (name "python-pvextractor")
+ (version "0.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pvextractor" version))
+ (sha256
+ (base32 "1kl33vg5rxmdwlk36pn8zqa7k7f43fb7w417fym6ygp86mci2spd"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags #~(list "--pyargs" "pvextractor")
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; See <https://github.com/radio-astro-tools/pvextractor/issues/124>.
+ (add-after 'unpack 'patch-regexp
+ (lambda _
+ (substitute* "pvextractor/pvregions.py"
+ (("coordre = re.compile.*")
+ "coordre = re.compile(\"^[a-z]*\\\\((.*)\\\\)\")\n"))))
+ (add-before 'check 'prepare-x
+ (lambda _
+ (system "Xvfb &")
+ (setenv "DISPLAY" ":0")
+ (setenv "HOME" "/tmp"))))))
+ (propagated-inputs
+ (list python-astropy
+ python-matplotlib
+ python-numpy
+ python-pyqt-6
+ python-qtpy
+ python-scipy
+ python-spectral-cube))
+ (native-inputs
+ (list python-pytest-astropy
+ python-setuptools-scm
+ xorg-server-for-tests))
+ (home-page "http://pvextractor.readthedocs.io";)
+ (synopsis "Position-Velocity diagram extractor")
+ (description
+ "The concept of the pvextractor package is simple - given a path defined
+in sky coordinates, and a spectral cube, extract a slice of the cube along
+that path, and along the spectral axis, producing a position-velocity or
+position-frequency slice.")
+ (license license:bsd-3)))
+
(define-public python-pyxsim
(package
(name "python-pyxsim")
--
2.41.0
- [bug#72741] [PATCH 05/32] gnu: python-astropy: Update to 6.1.2., (continued)
- [bug#72741] [PATCH 05/32] gnu: python-astropy: Update to 6.1.2., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 17/32] gnu: python-specutils: Update to 1.16.0., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 20/32] gnu: python-stcal: Update to 1.8.0., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 24/32] gnu: Add python-soxs., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 11/32] gnu: python-glymur: Update to 0.13.5., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 15/32] gnu: python-reproject: Update to 0.14.0., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 16/32] gnu: python-roman-datamodels: Update to 0.21.0., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 21/32] gnu: python-stpipe: Update to 0.7.0., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 22/32] gnu: python-sunpy: Update to 6.0.1., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 27/32] gnu: Add python-glue-astronomy., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 28/32] gnu: Add python-pvextractor.,
Sharlatan Hellseher <=
- [bug#72741] [PATCH 18/32] gnu: python-shapely: Update to 2.0.5., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 30/32] gnu: Add python-sunkit-image., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 25/32] gnu: Add python-pyxsim., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 29/32] gnu: Add python-glue-qt., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 32/32] gnu: python-sunkit-image: Disable more failing tests., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 19/32] gnu: python-shapely: Adjust home page., Sharlatan Hellseher, 2024/08/20
- [bug#72741] [PATCH 31/32] gnu: Add python-zodipy., Sharlatan Hellseher, 2024/08/20
- bug#72741: [PATCH 00/32] Astronomy update 2024/08., Sharlatan Hellseher, 2024/08/27