From 9c2fcafd752d33b13b90738cd629db23ada1ced1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 19 Feb 2026 00:39:27 +0000 Subject: gnu: python-stcal: Update to 1.17.0. * gnu/packages/astronomy.scm (python-stcal): Update to 1.17.0. [arguments] : Ignore tests file which tests require network access. : Remove 'relax-requirements. [propagated-inputs]: Remove opencv; add python-astropy-healpix, python-pyarrow, python-shapely, python-spherical-geometry, and python-stsci-imagestats. Change-Id: Id4dbaa6b15a63c8fbc54b9466f9d242804b15a91 --- gnu/packages/astronomy.scm | 40 +++++++++++++++------------------------- 1 file changed, 15 insertions(+), 25 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 7bd92f93163..3322c1029ca 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -9712,39 +9712,25 @@ and CAS statistics), as well as fitting 2D Sérsic profiles.") (define-public python-stcal (package (name "python-stcal") - (version "1.15.2") + (version "1.17.0") (source (origin (method url-fetch) (uri (pypi-uri "stcal" version)) (sha256 - (base32 "0lzwp06399fwxi8m82cmj5009s2xyvmzmvxw64qfbm39mxkhbw51")))) + (base32 "1897nclhw98gqg1krjky13nbfmbi0q1qa8dfzh96lq8d8yfgrix5")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 676 passed, 12 warnings #:test-flags #~(list "--pyargs" "stcal" - "--numprocesses" (number->string (parallel-job-count)) - "-k" (string-join - ;; Tests requiring network access. - (list "not test_absolute_align" - "test_create_catalog" - "test_create_catalog_graceful_failure" - "test_get_catalog" - "test_parse_refcat" - "test_parse_sky_centroid" - "test_relative_align[False]" - "test_relative_align[True]") - " and not ") - "tests") - #:phases - #~(modify-phases %standard-phases - (add-before 'build 'relax-requirements - (lambda _ - (substitute* "pyproject.toml" - ;; XXX: Can't detect opencv-python version. The input opencv - ;; might not set the version correctly. - ((".*opencv-python-headless.*") ""))))))) + "--numprocesses" (number->string (min 8 (parallel-job-count))) + ;; Network access is required for the most of the tests to + ;; download test data from + ;; . + "--ignore=tests/test_tweakreg.py" + "tests"))) (native-inputs (list python-cython python-psutil @@ -9754,15 +9740,19 @@ and CAS statistics), as well as fitting 2D Sérsic profiles.") python-setuptools python-setuptools-scm)) (propagated-inputs - (list opencv ;Provides OpenCV-Python - python-asdf + (list python-asdf python-astropy + python-astropy-healpix python-drizzle python-gwcs python-numpy + python-pyarrow python-requests python-scikit-image python-scipy + python-shapely + python-spherical-geometry + python-stsci-imagestats python-tweakwcs)) (home-page "https://github.com/spacetelescope/stcal") (synopsis "STScI tools and algorithms used in calibration pipelines") -- cgit v1.3