guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/11: gnu: python-slugify: Honor #:tests?.


From: guix-commits
Subject: 11/11: gnu: python-slugify: Honor #:tests?.
Date: Thu, 28 Oct 2021 15:43:19 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 7dbd5339d7e9c572afa0aa051dd304abe702cb7d
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Oct 28 21:02:57 2021 +0200

    gnu: python-slugify: Honor #:tests?.
    
    * gnu/packages/python-web.scm (python-slugify)[arguments]: Honor #:tests?
---
 gnu/packages/python-web.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index fcca869..62de043 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4594,8 +4594,9 @@ Python.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "python" "test.py"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "test.py")))))))
     (build-system python-build-system)
     (home-page "https://github.com/un33k/python-slugify";)
     (synopsis "Python Slugify application that handles Unicode")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]