diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2023-10-09 00:40:15 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-10-11 12:11:41 +0100 |
commit | bf6bab4e95ca34dce9e2816284a4fc0f0a3fe5e8 (patch) | |
tree | 2dc3710afeb5ccaf117a6c572d0c6b2173c5db84 /gnu | |
parent | 43b0e12004e7587814e050761adc4116e96dfaee (diff) | |
download | guix-bf6bab4e95ca34dce9e2816284a4fc0f0a3fe5e8.tar.gz |
gnu: python-stcal: Update to 1.4.4.
* gnu/packages/astronomy.scm (python-stcal): Update to 1.4.4. [arguments]{phases}: Add 'build-extensions phase. [native-inputs]: Add python-cython. Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/astronomy.scm | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 26099cc016..af19585b6f 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -2577,22 +2577,28 @@ image processing functions: @code{xyxymatch}, @code{geomap}.") (define-public python-stcal (package (name "python-stcal") - (version "1.4.2") + (version "1.4.4") (source (origin (method url-fetch) (uri (pypi-uri "stcal" version)) (sha256 (base32 - "163vyqcd9qv2knf8jik8y449z7ljl2lvbd7im82bq61prgi3z2hj")))) + "031ldihdmsdrwz4wl49bfk2bxmzbp1i3kidrw46xz936765zmnc0")))) (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases ;; XXX: Can't detect opencv-python version. The input ;; opencv might not set the version correctly. - (delete 'sanity-check)))) + (delete 'sanity-check) + (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 opencv ;Provides OpenCV-Python python-astropy python-numpy python-scipy)) - (native-inputs (list python-psutil + (native-inputs (list python-cython + python-psutil python-pytest python-pytest-cov python-pytest-doctestplus |