summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-03-02 19:58:27 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-03-31 21:04:10 +0100
commit60795b542148b01d95dcc20cfe0e009fce352951 (patch)
treed58361e0dee92650b695db5874947e4c6137cff1
parentf47200bc2cb2dcb0792c9b8a08249359e4290a0c (diff)
gnu: Add python-stsci-tools.
* gnu/packages/astronomy.scm (python-stsci-tools): New variable. Change-Id: Ice4b98040b62e22a656c0992ed86921173834966
-rw-r--r--gnu/packages/astronomy.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ef4b2b9d39..1d50c8d04a 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -6995,6 +6995,48 @@ pipelines.")
orbit around the Earth.")
(license license:expat)))
+(define-public python-stsci-tools
+ (package
+ (name "python-stsci-tools")
+ (version "4.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "stsci_tools" version))
+ (sha256
+ (base32 "180x3fmp020p4imc39ajs5qs6iimd8ld5bly3g9mm4psqbp8nyw9"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k"
+ ;; Two tests fail with error: RuntimeError: Problem during:
+ ;; takes_time(), exitcode: 1. Check log.
+ (string-append "not test_launch_and_wait[None-spawn]"
+ " and not test_launch_and_wait[None-forkserver]"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (delete-file "conftest.py"))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-astropy-header
+ python-pytest-doctestplus
+ python-setuptools
+ python-setuptools-scm-next
+ python-wheel))
+ (propagated-inputs
+ (list python-astropy
+ python-numpy
+ python-packaging))
+ (home-page "https://stscitools.readthedocs.io/en/latest")
+ (synopsis "Collection of STScI utility functions")
+ (description
+ "This package provides a collection of @acronym{Space Telescope Science
+Institute, STScI} utility functions.")
+ (license license:bsd-3)))
+
(define-public python-tweakwcs
(package
(name "python-tweakwcs")