[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#64201] [PATCH 14/20] gnu: python-pyerfa: Fix tests.
From: |
Sharlatan Hellseher |
Subject: |
[bug#64201] [PATCH 14/20] gnu: python-pyerfa: Fix tests. |
Date: |
Wed, 21 Jun 2023 07:33:53 +0100 |
* gnu/packages/astronomy.scm (python-pyerfa): Fix tests.
[snippet]: Use G-expressions.
[arguments]: Use G-expressions. Add new phase 'tests-preparation.
---
gnu/packages/astronomy.scm | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 829ee6bcd4..514aa53258 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3037,17 +3037,23 @@ (define-public python-pyerfa
(base32 "0f8zykzxjsiwv5ibdn5asla2ng2xl0xdkrcrrd61j31mb3xbnzyp"))
(modules '((guix build utils)))
(snippet
- '(begin
- ;; Remove bundled submodule library.
- (delete-file-recursively "liberfa")
- #t))))
- (build-system python-build-system)
+ #~(begin
+ ;; Remove bundled submodule library.
+ (delete-file-recursively "liberfa")))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'use-system-liberfa
- (lambda _
- (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1"))))))
+ (list
+ ;; Disable only one failing test:
+ ;; AttributeError: __warningregistry__
+ #:test-flags #~(list "-k" "not test_errwarn_reporting")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'use-system-liberfa
+ (lambda _
+ (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1")))
+ (add-before 'check 'tests-preparation
+ (lambda _
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs
(list python-pytest-doctestplus python-pytest python-setuptools-scm))
(inputs
--
2.40.1
- [bug#64201] [PATCH 08/20] gnu: python-ccdproc: Update to 2.4.1., (continued)
- [bug#64201] [PATCH 08/20] gnu: python-ccdproc: Update to 2.4.1., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 05/20] gnu: libxisf: Update to 0.2.8., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 10/20] gnu: python-drms: Update to 0.6.4., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 17/20] gnu: python-stdatamodels: Update to 1.6.0., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 11/20] gnu: python-fitsio: Update to 1.1.9., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 20/20] gnu: python-astroalign: Fix build., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 06/20] gnu: splash: Update to 3.8.2., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 03/20] gnu: calceph: Update to 3.5.2., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 09/20] gnu: python-cdflib: Update to 1.0.5., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 13/20] gnu: python-pyerfa: Update to 2.0.0.3., Sharlatan Hellseher, 2023/06/21
- [bug#64201] [PATCH 14/20] gnu: python-pyerfa: Fix tests.,
Sharlatan Hellseher <=
- [bug#64201] [PATCH 16/20] gnu: python-stcal: Update to 1.3.8., Sharlatan Hellseher, 2023/06/21