diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-31 09:40:07 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-27 17:03:08 +0100 |
commit | 75a9f7e4dea6527678031b9814e46c753b3aa565 (patch) | |
tree | 7efa9eb1022976e26d9afefb5b358d174a99f886 /gnu/packages | |
parent | 6203b9fba66a912eb4a54a6988cd27007ba7a693 (diff) | |
download | guix-75a9f7e4dea6527678031b9814e46c753b3aa565.tar guix-75a9f7e4dea6527678031b9814e46c753b3aa565.tar.gz |
gnu: python-stcal: Update to 1.8.0.
* gnu/packages/astronomy.scm (python-stcal): Update to 1.8.0.
[arguments] <#:test-flags>: Disable some tests requiring network access.
<#:phases>: Add 'patch-slope-fitter phase.
[propagated-inputs]: Add python-drizzle, python-requests,
python-scikit-image, and python-tweakwcs.
[native-inputs]: Remove python-pytest-cov.
Change-Id: Ibe7737a99dc8ef6a5219769e9ecbac1a0327d062
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/astronomy.scm | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index bf43123538..1bb8356346 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -3703,18 +3703,35 @@ processing functions: @code{xyxymatch}, @code{geomap}.") (define-public python-stcal (package (name "python-stcal") - (version "1.7.1") + (version "1.8.0") (source (origin (method url-fetch) (uri (pypi-uri "stcal" version)) (sha256 - (base32 "003ygbfa25awvy2zjfxd1k4f1aklsvd53sdk7qa0w42v6ys2kabs")))) + (base32 "0vcq1462wdfi96qqsd5bidx38bbpnpcm18j6s761jz8ymi6vifap")))) (build-system pyproject-build-system) (arguments (list + #:test-flags + #~(list "-k" (string-append + ;; Tests requiring network access. + "not test_absolute_align" + " and not test_relative_align[True]" + " and not test_relative_align[False]" + " and not test_get_catalog" + " and not test_create_catalog" + " and not test_create_catalog_graceful_failure" + " and not test_parse_refcat")) #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-slope-fitter + (lambda _ + (substitute* "src/stcal/ramp_fitting/src/slope_fitter.c" + ;; It's failing to build, it looks like Guix's NumPy does not + ;; contain the variable: error: ‘NPY_NTYPES_LEGACY’ undeclared + ;; (first use in this function) + ((".*NPY_NTYPES_LEGACY.*") "")))) (add-before 'build 'silent-check-for-opencv (lambda _ ;; XXX: Can't detect opencv-python version. The input opencv @@ -3729,14 +3746,17 @@ processing functions: @code{xyxymatch}, @code{geomap}.") (list opencv ;Provides OpenCV-Python python-asdf python-astropy + python-drizzle python-gwcs python-numpy - python-scipy)) + python-requests + python-scikit-image + python-scipy + python-tweakwcs)) (native-inputs (list python-cython-3 python-psutil python-pytest - python-pytest-cov python-pytest-doctestplus python-setuptools-scm)) (home-page "https://github.com/spacetelescope/stcal") |