GNU bug report logs - #64201
[PATCH 00/19] gnu: monthly astronomy packages update

Previous Next

Package: guix-patches;

Reported by: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Date: Wed, 21 Jun 2023 06:29:01 UTC

Severity: normal

Tags: patch

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

Full log


Message #125 received at 64201 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 64201 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH v2 15/22] gnu: python-pyerfa: Fix tests.
Date: Thu, 27 Jul 2023 00:15:41 +0100
* gnu/packages/astronomy.scm (python-pyerfa): Fix tests.
[build-system]: Swap to pyproject-build-system.
[arguments]: Disable a failing test. Add 'build-extensions phase.
---
 gnu/packages/astronomy.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ac6108eb6c..97fce57cd3 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3164,13 +3164,19 @@ (define-public python-pyerfa
            ;; 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
-- 
2.40.1





This bug report was last modified 1 year and 284 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.