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 29/92] gnu: python-pypujs: Improve package style.
Date: Fri, 10 May 2024 00:53:24 +0200
* gnu/packages/python-xyz.scm (python-pypujs): Improve package style.
  [arguments]<#:test-flags>: Use it in place of check phase
  replacement.
  <#:phases>: Clarify phase disable-pyramid.

Change-Id: If8073cc4e9a8a86003000e7157985fe382de7b4f
---
 gnu/packages/python-xyz.scm | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0863ce8fa01..6d6169ec1e1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6453,18 +6453,13 @@ (define-public python-pypugjs
     (build-system pyproject-build-system)
     (arguments
      (list
+      #:test-flags '(list "pypugjs/testsuite/")
       #:phases #~(modify-phases %standard-phases
-                   ;; Our pyramid is outdated and pyramid-mako is not packaged.
                    (add-after 'unpack 'disable-pyramid
-                     (lambda* (#:key inputs #:allow-other-keys)
-                       (substitute* "setup.py"
-                         (("'pyramid")
-                          "#'pyramid"))))
-                   (replace 'check
-                     (lambda* (#:key tests? #:allow-other-keys)
-                       (when tests?
-                         (invoke "python" "-m" "pytest" "-v"
-                                 "pypugjs/testsuite/")))))))
+                     (lambda _
+                       ;; pyramid is outdated and pyramid-mako is unpackaged.
+                       (substitute* "setup.cfg"
+                         (("'(pyramid|pyramid-mako)[^']*',") "")))))))
     (native-inputs (list python-coverage
                          python-django
                          python-jinja2
-- 
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.