diff options
Diffstat (limited to 'gnu/packages/astronomy.scm')
-rw-r--r-- | gnu/packages/astronomy.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 65739f6bd1..a3d71c09af 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -3255,13 +3255,19 @@ exposures and high-level data products (mosaics, extracted spectra, etc.).") ;; Remove bundled submodule library. (delete-file-recursively "liberfa") #t)))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - `(#:phases + `(;; Disable only one failing test: + ;; AttributeError: __warningregistry__ + #:test-flags '("-k" "not test_errwarn_reporting") + #:phases (modify-phases %standard-phases (add-before 'build 'use-system-liberfa (lambda _ - (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1")))))) + (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1"))) + (add-before 'check 'build-extensions + (lambda _ + (invoke "python" "setup.py" "build_ext" "--inplace")))))) (native-inputs (list python-pytest-doctestplus python-pytest python-setuptools-scm)) (inputs |