From 072498187bc3835d26aef407e8a9be7d00a83a02 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 2 Mar 2025 21:06:48 +0000 Subject: [PATCH] gnu: Add python-stwcs. * gnu/packages/astronomy.scm (python-stwcs): New variable. Change-Id: I3a6e02d076d9716f34dcc6f734c401847476ca8c --- gnu/packages/astronomy.scm | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 35b90be498..3143867010 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -7068,6 +7068,77 @@ orbit around the Earth.") Institute, STScI} utility functions.") (license license:bsd-3))) +(define-public python-stwcs + (package + (name "python-stwcs") + (version "1.7.3") ; any newer version requires NumPy 2+ + (source + (origin + (method url-fetch) + (uri (pypi-uri "stwcs" version)) + (sha256 + (base32 "12114hx27mgwcwcyz7lghm78g6pbg8j40189lcfi22zsk47fxv11")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "-k" (string-join + ;; XXX: Test requiring network access to download data + ;; from , check if the test data may be + ;; obtained programmatically. + (list "not test1SciExt" + "testAllExt" + "testHletFromSimpleFITS" + "testHletFromString" + "testSciExtList" + "testSciExtNumList" + "testWrongD2IMModel" + "testWrongNPOLModel" + "testWrongSIPModel" + "test_add_radesys" + "test_apply_as_alternate_method" + "test_apply_as_primary_method" + "test_apply_d2im" + "test_db_connection" + "test_default" + "test_new_obs" + "test_no_HDRNAME_no_WCSNAME" + "test_outwcs" + "test_pipeline_sci1" + "test_pipeline_sci2" + "test_remove_d2im_distortion" + "test_remove_npol_distortion" + "test_remove_npol_distortion_hdulist" + "test_repeate" + "test_repeated_updatewcs_use_db" + "test_restore_headerlet" + "test_simple_sci1" + "test_simple_sci2" + "test_update_d2im_distortion" + "test_update_legacy_file" + "test_update_stis_asn" + "test_update_waiver_wfpc2") + " and not ")))) + (native-inputs + (list nss-certs-for-test + python-pytest + python-setuptools + python-setuptools-scm-next + python-wheel)) + (propagated-inputs + (list python-astropy + python-lxml + python-numpy + python-requests + python-stsci-tools)) + (home-page "https://stwcs.readthedocs.io/en/latest/") + (synopsis "WCS based distortion models and coordinate transformation") + (description + "STWCS provides support for WCS distortion models and coordinate +transformation for the imaging instruments on the @acronym{Hubble Space +Telescope, HST}).") + (license license:bsd-3))) + (define-public python-tweakwcs (package (name "python-tweakwcs")