GNU bug report logs - #70858
[PATCH 00/32] python-team: Remove native inputs

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Fri, 10 May 2024 07:50:01 UTC

Severity: normal

Tags: patch

Full log


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

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 70858 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>, sharlatanus <at> gmail.com
Subject: [PATCH v3 10/28] gnu: python-openid: Remove python-coverage
 native-input.
Date: Fri, 31 Jan 2025 03:03:10 +0100
* gnu/packages/python-web.scm (python-openid):
  [native-inputs]: Remove python-coverage.
  [arguments]<#:phases>: Rewrite check phase.

Change-Id: Id4ea5abc531f5fd84b60ff22407eb608f1e6ac29
---
 gnu/packages/python-web.scm | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2db955df6f..735073e96f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3094,17 +3094,18 @@ (define-public python-openid
          "1bxf9a3ny1js422j962zfzl4a9dhj192pvai05whn7j0iy9gdyrk"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-        (replace 'check
-          (lambda* (#:key tests? #:allow-other-keys)
-            (when tests?
-              (invoke "coverage" "run" "-m"
-                      "unittest" "openid.test.test_suite")))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (if tests?
+                  (invoke "python" "-m" "unittest" "openid.test.test_suite")
+                  (format #t "test suite not run~%")))))))
     (propagated-inputs
      (list python-defusedxml))
     (native-inputs
-     (list python-coverage python-psycopg2 python-django))
+     (list python-psycopg2 python-django))
     (home-page "https://github.com/necaris/python3-openid")
     (synopsis "OpenID support for servers and consumers")
     (description "This library provides OpenID authentication for Python, both
-- 
2.48.1





This bug report was last modified 67 days ago.

Previous Next


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