guix_mirror_bot pushed a commit to branch astro-update
in repository guix.

commit 0eccfe70ab72fb15078bfdc141f35158fb006557
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Feb 17 13:21:12 2026 +0000

    gnu: python-astrocut: Update to 1.1.0.
    
    * gnu/packages/astronomy.scm (python-astrocut): Update to 1.1.0.
    [arguments] <test-flags>: Rework skipped test by apply "--deselect"
    option.
    [phases]{fix-setup.cfg}: Remove fixed substitute.
    [native-inputs]: Remove python-wheel.
    
    Change-Id: Id858725bdf7a81ffc4fd55bdae948804495891da
---
 gnu/packages/astronomy.scm | 69 ++++++++++++++++++++++++++--------------------
 1 file changed, 39 insertions(+), 30 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 25eb11a7c8..6ae69f09b0 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2623,34 +2623,45 @@ astronomical images, especially when there is no WCS 
information available.")
     (build-system pyproject-build-system)
     (arguments
      (list
+      ;; tests: 115 passed, 2 skipped, 18 deselected, 1 xfailed
       #:test-flags
-      #~(list "-k" (string-join
-                    ;; Tests requiring network access.
-                    (list "not index.rst"
-                          "test_cube_cut_from_footprint"
-                          "test_fits_cut[SPOC]"
-                          "test_fits_cut[TICA]"
-                          "test_fits_cutout_cloud"
-                          "test_multithreading"
-                          "test_s3_cube_cut"
-                          "test_tess_cube_cutout_s3"
-                          "test_tess_cube_cutout_threads"
-                          "test_tess_footprint_cutout[SPOC]"
-                          "test_tess_footprint_cutout[TICA]"
-                          "test_tess_footprint_cutout_all_sequences"
-                          "test_tess_footprint_cutout_invalid_sequence"
-                          "test_tess_footprint_cutout_multi_sequence"
-                          "test_tess_footprint_cutout_outside_coords"
-                          "test_tess_footprint_cutout_write_as_tpf"
-                          ;; Some NumPy compatability errors during tests.
-                          "test_get_cutout_limits"
-                          "test_get_cutout_wcs"
-                          ;; botocore.exceptions.EndpointConnectionError:
-                          ;; Could not connect to the endpoint URL:
-                          ;; "https://stpubdata.s3.amazonaws.com/tess/public/\
-                          ;; footprints/tess_ffi_footprint_cache.json"
-                          "test_tess_footprint_cutout")
-                    " and not "))
+      #~(list "--deselect=docs/astrocut/index.rst::index.rst"
+              #$@(map (lambda (ls)
+                        (string-append "--deselect="
+                                       "astrocut/tests/"
+                                       (string-join ls "::")))
+                      ;; botocore.exceptions.EndpointConnectionError: Could
+                      ;; not connect to the endpoint URL:
+                      ;; "https://stpubdata.s3.amazonaws.com/<...>"
+                      '(("test_cube_cut.py" "test_s3_cube_cut")
+                        ("test_cube_cut.py" "test_multithreading")
+                        ("test_cutouts.py" "test_fits_cut[SPOC]")
+                        ("test_cutouts.py" "test_fits_cut[TICA]")
+                        ("test_fits_cutout.py" "test_fits_cutout_cloud")
+                        ("test_tess_cube_cutout.py"
+                         "test_tess_cube_cutout_s3")
+                        ("test_tess_cube_cutout.py"
+                         "test_tess_cube_cutout_threads")
+                        ("test_tess_footprint_cutout.py"
+                         "test_tess_footprint_cutout")
+                        ("test_tess_footprint_cutout.py"
+                         "test_tess_footprint_cutout_multi_sequence")
+                        ("test_tess_footprint_cutout.py"
+                         "test_tess_footprint_cutout_all_sequences")
+                        ("test_tess_footprint_cutout.py"
+                         "test_tess_footprint_cutout_write_as_tpf")
+                        ("test_tess_footprint_cutout.py"
+                         "test_tess_footprint_cutout_invalid_sequence")
+                        ("test_tess_footprint_cutout.py"
+                         "test_tess_footprint_cutout_outside_coords")
+                        ("test_tess_footprint_cutout.py"
+                         "test_cube_cut_from_footprint")
+                        ;; assert (np.int64(16) - np.int64(12)) == 5
+                        ("test_utils.py" "test_get_cutout_limits")
+                        ;; assert np.False_ where np.False_ = <built-in
+                        ;; method all of numpy.ndarray object at
+                        ;; 0x7fff553cde90>()
+                        ("test_utils.py" "test_get_cutout_wcs"))))
       #:phases
       #~(modify-phases %standard-phases
           ;; TODO: Report upstream: ModuleNotFoundError: No module named
@@ -2658,7 +2669,6 @@ astronomical images, especially when there is no WCS 
information available.")
           (add-after 'unpack 'fix-setup.cfg
             (lambda _
               (substitute* "setup.cfg"
-                (("console_scripts =") "")
                 (("astropy-package-template-example.*") "")))))))
     (native-inputs
      (list nss-certs-for-test
@@ -2666,8 +2676,7 @@ astronomical images, especially when there is no WCS 
information available.")
            python-astroquery
            python-pytest-astropy
            python-setuptools
-           python-setuptools-scm
-           python-wheel))
+           python-setuptools-scm))
     (propagated-inputs
      (list python-asdf
            python-astropy

Reply via email to