GNU bug report logs - #70855
[PATCH 00/92] python-team patches

Previous Next

Package: guix-patches;

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

Date: Thu, 9 May 2024 22:51:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 70855 <at> debbugs.gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [bug#70855] [PATCH 28/92] gnu: zulip-term: Move to pyproject-build-system.
Date: Fri, 10 May 2024 00:53:23 +0200
* gnu/packages/messaging.scm (zulip-term):
  [build-system]: Move to pyproject-build-system.
  [arguments]<#:test-flags>: Use it in place of check phase replacement.

Change-Id: Ia5be66a35b92d9a9229f450a7724e27167c02eda
---
 gnu/packages/messaging.scm | 23 ++++++-----------------
 1 file changed, 6 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 497808b069f..cb72bfb3e25 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -3211,24 +3211,13 @@ (define-public zulip-term
         (base32
          "1xhhy3v4wck74a83avil0rnmsi2grrh03cww19n5mv80p2q1cjmf"))
        (modules '((guix build utils)))
-       (snippet
-        '(begin
-           (substitute* "setup.py"
-             (("\\=\\=1\\.7") ">=1.7")  ; pytest-mock
-             (("\\=\\=2\\.5") ">=2.5")  ; pytest-cov
-             (("4\\.5\\.2") "4.4.2"))   ; lxml
-           #t))))
-    (build-system python-build-system)
+       (snippet '(substitute* "setup.py"
+                   (("\\=\\=1\\.7") ">=1.7")    ; pytest-mock
+                   (("\\=\\=2\\.5") ">=2.5")    ; pytest-cov
+                   (("4\\.5\\.2") "4.4.2")))))  ; lxml
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               ;; Delete failing tests.
-               (delete-file "tests/cli/test_run.py")
-               (invoke "pytest"))
-             #t)))))
+     '(#:test-flags '("--ignore=tests/cli/test_run.py")))
     (inputs
      (list python-beautifulsoup4
            python-lxml
-- 
2.41.0





This bug report was last modified 364 days ago.

Previous Next


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