GNU bug report logs - #72741
[PATCH 00/32] Astronomy update 2024/08.

Previous Next

Package: guix-patches;

Reported by: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Date: Wed, 21 Aug 2024 00:03:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 72741 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>, Andreas Enge <andreas <at> enge.fr>, Eric Bavier <bavier <at> posteo.net>, Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [bug#72741] [PATCH 26/32] gnu: Add python-specreduce.
Date: Wed, 21 Aug 2024 01:03:28 +0100
* gnu/packages/astronomy.scm (python-specreduce): New variable.

Change-Id: Ia6468aeb8bb65cd3d9ff0a8f854e393069ba6f4f
---
 gnu/packages/astronomy.scm | 53 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 53b50db7cd..6f7fecd8e4 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1376,6 +1376,59 @@ (define-public python-soxs
     ;; known as New or Revised BSD).
     (license license:bsd-3)))
 
+(define-public python-specreduce
+  (package
+    (name "python-specreduce")
+    (version "1.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "specreduce" version))
+       (sha256
+        (base32 "14ba4ws2z3kpw007f3hpslgp5i6dx082xhql4aim7j82211gpj6s"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; TODO: Try to link some test data availale in
+      ;; specification-specreduce-data package.
+      #~(list "-k" (string-append
+                    "not specreduce.calibration_data.get_pypeit_data_path"
+                    " and not specreduce.calibration_data.get_reference_file_path"))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-pypojrect-toml
+            (lambda _
+              (substitute* "pyproject.toml"
+                ;; TypeError: Configuration.__init__() got an unexpected
+                ;; keyword argument 'version_file'
+                (("version_file = .*") ""))))
+         (add-before 'check 'set-home
+           (lambda _
+             ;; Relax matplotlib warning: ... because the default path
+             ;; (/homeless-shelter/.config/matplotlib) is not a writable
+             ;; directory ...
+             (setenv "HOME" "/tmp"))))))
+    (propagated-inputs
+     (list python-astropy
+           python-gwcs
+           python-matplotlib
+           python-photutils
+           python-specutils
+           python-synphot))
+    (native-inputs
+     (list python-photutils
+           python-setuptools-scm
+           python-pytest-astropy))
+    (home-page "https://specreduce.readthedocs.io/")
+    (synopsis "Spectroscopic Reductions")
+    (description
+     "This package implements functionality of spectroscopic reduction in
+observations from Optical and @acronym{Near-infrared spectroscopy,NIR}
+instruments.")
+    (license (list license:bsd-3     ; licenses/LICENSE.rst, same as python-astropy
+                   license:expat)))) ; licenses/KOSMOS_LICENSE
+
 (define-public wcslib
   (package
     (name "wcslib")
-- 
2.41.0





This bug report was last modified 318 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.