mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: Add python-photutils.
* gnu/packages/astronomy.scm (python-photutils): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
fb12d6b48e
commit
5e51ccc120
1 changed files with 34 additions and 0 deletions
|
@ -789,6 +789,40 @@ astronomy and astrophysics.")
|
|||
to access online Astronomical data. Each web service has its own sub-package.")
|
||||
(license license:bsd-3)))
|
||||
|
||||
(define-public python-photutils
|
||||
(package
|
||||
(name "python-photutils")
|
||||
(version "1.3.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "photutils" version))
|
||||
(sha256
|
||||
(base32 "1a8djakaya6w5iv9237gkcz39brqzgrfs2wqrl0izi1s85cfdymn"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:test-target "pytest"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; This file is opened in both install and check phases.
|
||||
(add-before 'install 'writable-compiler
|
||||
(lambda _ (make-file-writable "photutils/_compiler.c")))
|
||||
(add-before 'check 'writable-compiler
|
||||
(lambda _ (make-file-writable "photutils/_compiler.c"))))))
|
||||
(propagated-inputs
|
||||
(list python-astropy python-numpy))
|
||||
(native-inputs
|
||||
(list python-cython
|
||||
python-extension-helpers
|
||||
python-pytest-astropy
|
||||
python-pytest-runner
|
||||
python-setuptools-scm))
|
||||
(home-page "https://github.com/astropy/photutils")
|
||||
(synopsis "Source detection and photometry")
|
||||
(description "Photutils is an Astropy package for detection and photometry
|
||||
of astronomical sources.")
|
||||
(license license:bsd-3)))
|
||||
|
||||
(define-public python-pyvo
|
||||
(package
|
||||
(name "python-pyvo")
|
||||
|
|
Loading…
Reference in a new issue