all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 62801@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#62801] [PATCH 1/4] gnu: Add python-astroscrappy.
Date: Wed, 12 Apr 2023 22:05:26 +0100	[thread overview]
Message-ID: <20230412210529.30189-1-sharlatanus@gmail.com> (raw)
In-Reply-To: <20230412205748.29835-1-sharlatanus@gmail.com>

* gnu/packages/astronomy.scm (python-astroscrappy): New variable.
---
 gnu/packages/astronomy.scm | 48 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index db290f5987..f162be6006 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1302,6 +1302,54 @@ (define-public python-astroquery
 to access online Astronomical data.  Each web service has its own sub-package.")
     (license license:bsd-3)))
 
+(define-public python-astroscrappy
+  (package
+    (name "python-astroscrappy")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "astroscrappy" version))
+       (sha256
+        (base32 "0shmfilvzpmlwz4fh0bx4kqmzr0y39fgga6vipxb5d1rx1y6q6by"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'preparations
+            (lambda _ (setenv "HOME" "/tmp")))
+          (add-before 'install 'writable-compiler
+            (lambda _ (make-file-writable "astroscrappy/_compiler.c")))
+          (add-before 'check 'writable-compiler
+            (lambda _ (make-file-writable "astroscrappy/_compiler.c")))
+          (replace 'check
+            (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+              (when tests?
+                (add-installed-pythonpath inputs outputs)
+                ;; Extensions have to be rebuilt before running the tests.
+                (invoke "python" "setup.py" "build_ext" "--inplace")
+                (invoke "python" "-m" "pytest" "--pyargs" "astroscrappy")))))))
+    (native-inputs
+     (list python-cython
+           python-extension-helpers
+           python-h5py
+           python-pandas
+           python-pytest-astropy
+           python-scikit-image
+           python-setuptools-scm
+           python-scipy))
+    (propagated-inputs (list python-astropy python-numpy))
+    (home-page "https://github.com/astropy/astroscrappy")
+    (synopsis "Speedy Cosmic Ray Annihilation Package in Python")
+    (description
+     "Astro-SCRAPPY is designed to detect cosmic rays in images (numpy
+arrays), based on Pieter van Dokkum's L.A.Cosmic algorithm.  Much of this was
+originally adapted from cosmics.py written by Malte Tewes.  This is designed to
+be as fast as possible so some of the readability has been sacrificed,
+specifically in the C code.")
+    (license license:bsd-3)))
+
 (define-public python-cdflib
   (package
     (name "python-cdflib")
-- 
2.39.2





  reply	other threads:[~2023-04-12 21:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 20:57 [bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2 Sharlatan Hellseher
2023-04-12 21:05 ` Sharlatan Hellseher [this message]
2023-04-12 21:05   ` [bug#62801] [PATCH 2/4] gnu: Add python-memory-profiler Sharlatan Hellseher
2023-04-20  1:52     ` [bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2 Maxim Cournoyer
2023-04-12 21:05   ` [bug#62801] [PATCH 3/4] gnu: Add python-ccdproc Sharlatan Hellseher
2023-04-20  1:55     ` [bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2 Maxim Cournoyer
2023-04-12 21:05   ` [bug#62801] [PATCH 4/4] " Sharlatan Hellseher
2023-04-20  1:58     ` [bug#62801] [PATCH 0/4]: " Maxim Cournoyer
2023-04-20  1:48   ` Maxim Cournoyer
2023-04-18 20:21 ` [bug#62801] Sharlatan Hellseher
2023-04-24 17:41   ` [bug#62801] Sharlatan Hellseher
2023-05-07 14:40     ` bug#62801: Maxim Cournoyer
2023-04-21 20:04 ` [bug#62801] [PATCH v2 1/4] gnu: Add python-astroscrappy Sharlatan Hellseher
2023-04-21 20:04   ` [bug#62801] [PATCH v2 2/4] gnu: Add python-memory-profiler Sharlatan Hellseher
2023-04-21 20:04   ` [bug#62801] [PATCH v2 3/4] gnu: Add python-ccdproc Sharlatan Hellseher
2023-04-21 20:04   ` [bug#62801] [PATCH v2 4/4] gnu: python-astroalign: Update to 2.4.2 Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230412210529.30189-1-sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=62801@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.