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

commit d642949e3a5a3edad0cc82c0583cf5b3e7ef2a44
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Nov 14 15:05:57 2025 +0000

    gnu: python-reproject: Simplify packaging.
    
    * gnu/packages/astronomy.scm (python-reproject):
    [arguments] <test-flags>: Remove unnecessary pytest options.
    <phases>: Add 'post-check, removing __pycache__ from output.
    
    Change-Id: I9bcb571b597389db74f3ff5c3b90a6ca887deae7
---
 gnu/packages/astronomy.scm | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 6cad4d3251..bda30a8a05 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -7857,24 +7857,23 @@ PSF} describing how the optical system spreads light 
from sources.")
     (build-system pyproject-build-system)
     (arguments
      (list
-      ;; tests: 2062 passed, 398 skipped, 3 warnings
+      ;; tests: 2063 passed, 398 skipped, 15 warnings
       #:test-flags
       #~(list "--arraydiff"
               "--arraydiff-default-format=fits"
-              "--numprocesses" (number->string (min 8 (parallel-job-count)))
-              "--pyargs" "reproject"
-              ;; ValueError: Could not determine celestial frame corresponding
-              ;; to the specified WCS object
-              "-k" "not test_solar_wcs")
+              "--numprocesses" (number->string (min 8 (parallel-job-count))))
       #:phases
       #~(modify-phases %standard-phases
-          ;; Use built library for tests.
           (replace 'check
             (lambda* (#:key tests? test-flags #:allow-other-keys)
               (when tests?
                 (with-directory-excursion #$output
                   (setenv "HOME" "/tmp")
-                  (apply invoke "pytest" "-vv" test-flags))))))))
+                  (apply invoke "pytest" "-vv" test-flags)))))
+          (add-before 'check 'post-check
+            (lambda _
+              (for-each delete-file-recursively
+                        (find-files #$output "__pycache__" #:directories? 
#t)))))))
     (native-inputs
      (list python-cython
            python-extension-helpers

Reply via email to