guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/26: gnu: Add python-stsci-image.


From: guix-commits
Subject: 09/26: gnu: Add python-stsci-image.
Date: Wed, 14 Jun 2023 07:58:53 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 04cf30e15323fa56c1f0ce7e4e8f3981dab9f99a
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue May 30 20:58:34 2023 +0100

    gnu: Add python-stsci-image.
    
    * gnu/packages/astronomy.scm (python-stsci-image): New variable.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/astronomy.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 4bca7cf4e0..80bf8a68f8 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2045,6 +2045,34 @@ spherical polygons that represent arbitrary regions of 
the sky.")
     ;; QD_LIBRARY_LICENSE.rst for bandeled QD source
     (license license:bsd-3)))
 
+(define-public python-stsci-image
+  (package
+    (name "python-stsci-image")
+    (version "2.3.5")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "stsci.image" version))
+              (sha256
+               (base32
+                "1vnp4256nbdvapa69cmm80sjz11ygxa49abr9nbvssj6nyyp5icb"))))
+    (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-numpy python-scipy))
+    (native-inputs (list python-pytest python-setuptools-scm))
+    (home-page "https://github.com/spacetelescope/stsci.image";)
+    (synopsis "Image array manipulation functions")
+    (description
+     "This package provides Python modules of @acronym{STScI, Space Telescope
+Science Institute} image array manipulation functions.")
+    (license license:bsd-3)))
+
 (define-public libnova
   (package
     (name "libnova")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]