diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2023-04-21 21:04:43 +0100 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-05-07 09:28:08 -0400 |
commit | 018764f16514d9193765e4651cf39c3def16a171 (patch) | |
tree | e61b60d9a22584df7e5111fb1decb41125851eca | |
parent | 7f8575c97a8c112e9f82981b8803d075a82738dd (diff) | |
download | guix-018764f16514d9193765e4651cf39c3def16a171.tar.gz guix-018764f16514d9193765e4651cf39c3def16a171.zip |
gnu: Add python-astroscrappy.
* gnu/packages/astronomy.scm (python-astroscrappy): New variable.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r-- | gnu/packages/astronomy.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 888e5bb1d7..0367725795 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1302,6 +1302,50 @@ astronomy and astrophysics.") 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 + #:test-flags #~(list "--pyargs" "astroscrappy") + #: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 'tests-preparation + (lambda _ + (make-file-writable "astroscrappy/_compiler.c") + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (native-inputs + (list python-cython + python-extension-helpers + python-h5py + python-pandas + python-pytest-astropy + python-scikit-image + python-scipy + python-setuptools-scm)) + (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") |