diff mbox series

[bug#68641,12/19] gnu: Add python-specutils.

Message ID ae6e8f39537ed87f3c7b3d51d200ab1d65df83a6.1705854493.git.sharlatanus@gmail.com
State New
Headers show
Series gnu: Astronomy 2024/01 updates. | expand

Commit Message

Sharlatan Hellseher Jan. 21, 2024, 4:53 p.m. UTC
* gnu/packages/astronomy.scm (python-specutils): New variable.

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

Comments

Maxim Cournoyer Jan. 24, 2024, 2:15 p.m. UTC | #1
Hi,

Sharlatan Hellseher <sharlatanus@gmail.com> writes:

> * gnu/packages/astronomy.scm (python-specutils): New variable.
>
> Change-Id: Id109b9b1c385b7fe3ff9a3a5406d1930c8ff1ffb
> ---
>  gnu/packages/astronomy.scm | 49 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 49 insertions(+)
>
> diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
> index c5e7da59f9..7e1dd3ed82 100644
> --- a/gnu/packages/astronomy.scm
> +++ b/gnu/packages/astronomy.scm
> @@ -2704,6 +2704,55 @@ (define-public python-spectral-cube
>  @end itemize")
>      (license license:bsd-3)))
>  
> +(define-public python-specutils
> +  (package
> +    (name "python-specutils")
> +    (version "1.12.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "specutils" version))
> +       (sha256
> +        (base32 "10nq00q71cyj0p74g3kyzb4hrwkbvhsd6m5zvxifc035rfnvc2qv"))))
> +    (build-system pyproject-build-system)
> +    (arguments
> +     (list
> +      ;; Disabling test requiring access to download
> +      ;; https://datacenter.iers.org/data/9/finals2000A.all

If you enclose the URL between < > to distinguish it from the rest of
the text, you can then add a trailing '.' to the end of the comment.

> +      ;; XXX: Check if test data may be packed as stand along package.

typo: standalone.
diff mbox series

Patch

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index c5e7da59f9..7e1dd3ed82 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2704,6 +2704,55 @@  (define-public python-spectral-cube
 @end itemize")
     (license license:bsd-3)))
 
+(define-public python-specutils
+  (package
+    (name "python-specutils")
+    (version "1.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "specutils" version))
+       (sha256
+        (base32 "10nq00q71cyj0p74g3kyzb4hrwkbvhsd6m5zvxifc035rfnvc2qv"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      ;; Disabling test requiring access to download
+      ;; https://datacenter.iers.org/data/9/finals2000A.all
+      ;; XXX: Check if test data may be packed as stand along package.
+      #:test-flags #~(list "-k" "not test_create_spectral_axis")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'set-home-env
+            (lambda _
+              ;; Tests require HOME to be set.
+              ;;  Permission denied: '/homeless-shelter'
+              (setenv "HOME" "/tmp"))))))
+    (propagated-inputs
+     (list ;; python-stdatamodels ; cycle with python-synphot, optional.
+           python-asdf
+           python-asdf-astropy
+           python-gwcs
+           python-ndcube
+           python-numpy
+           python-scipy))
+    (native-inputs
+     (list python-matplotlib
+           python-pytest-astropy
+           python-semantic-version
+           python-setuptools-scm
+           python-spectral-cube))
+    (home-page "https://specutils.readthedocs.io/")
+    (synopsis "Package for spectroscopic astronomical data")
+    (description
+     "@code{specutils} is a Python package for representing, loading, manipulating,
+and analyzing astronomical spectroscopic data.  The generic data containers and
+accompanying modules provide a toolbox that the astronomical community can use
+to build more domain-specific packages.  For more details about the underlying
+principles,
+see @url{https://github.com/astropy/astropy-APEs/blob/main/APE13.rst, APE13}.")
+    (license license:bsd-3)))
+
 (define-public python-spherical-geometry
   (package
     (name "python-spherical-geometry")