~ruther/guix-local

eb0c092037c30beb4bcaaf88437c77ad14cb0751 — Sharlatan Hellseher 4 months ago bc311d8
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.

Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 8 insertions(+), 4 deletions(-)

M gnu/packages/astronomy.scm
M gnu/packages/astronomy.scm => gnu/packages/astronomy.scm +8 -4
@@ 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