guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 567cddae6c6e1f895d76103b328256d780931aae
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Dec 8 23:48:56 2025 +0000

    gnu: python-casa-formats-io: Fix tests.
    
    * gnu/packages/astronomy.scm (python-casa-formats-io):
    [arguments] <test-flags>: Skip one test, run tests against installed
    module.
    <phases>: Remove 'build-extensions; add 'remove-local-source.
    [native-inputs]: Remove python-pytest-cov and python-wheel, add
    python-setuptools-scm.
---
 gnu/packages/astronomy.scm | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index d72dce8a82..8d58421f87 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3598,17 +3598,21 @@ in fast modern Fortran.")
     (build-system pyproject-build-system)
     (arguments
      (list
+      ;; tests: 17 passed, 58 skipped, 1 deselected, 1 xfailed, 25 warnings
+      #:test-flags
+      #~(list "--pyargs" "casa_formats_io"
+              ;; AttributeError: module 'numpy' has no attribute 'product'
+              "-k" "not test_ms_tables[.]")
       #:phases
       #~(modify-phases %standard-phases
-          (add-before 'check 'build-extensions
+          (add-before 'check 'remove-local-source
             (lambda _
-              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+              (delete-file-recursively "casa_formats_io"))))))
     (native-inputs
      (list python-pytest
-           python-pytest-cov
            python-pytest-openfiles
            python-setuptools
-           python-wheel))
+           python-setuptools-scm))
     (propagated-inputs
      (list python-astropy
            python-click

Reply via email to