From eb0c092037c30beb4bcaaf88437c77ad14cb0751 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 8 Dec 2025 23:48:56 +0000 Subject: [PATCH] gnu: python-casa-formats-io: Fix tests. * gnu/packages/astronomy.scm (python-casa-formats-io): [arguments] : Skip one test, run tests against installed module. : Remove 'build-extensions; add 'remove-local-source. [native-inputs]: Remove python-pytest-cov and python-wheel, add python-setuptools-scm. Signed-off-by: Rutherther --- 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 d72dce8a8209e0ae659c5f8a13798c8828e5ab01..8d58421f87d11e4bbbb57ff903821d36179b1363 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