guix-commits
[Top][All Lists]
Advanced

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

21/31: gnu: python-clf: Use INVOKE.


From: Tobias Geerinckx-Rice
Subject: 21/31: gnu: python-clf: Use INVOKE.
Date: Wed, 30 May 2018 22:55:35 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit a145d7e9af6452f3514ab130db534e4592a9c2b9
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Sun Apr 1 07:48:34 2018 +0200

    gnu: python-clf: Use INVOKE.
    
    * gnu/packages/web.scm (python-clf)[arguments]: Substitute INVOKE for
    SYSTEM*.
---
 gnu/packages/web.scm | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 0be62ac..36757ba 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5305,14 +5305,15 @@ internetarchive python module for programatic access to 
archive.org.")
          (modify-phases %standard-phases
            (add-after 'unpack 'get-tests
              (lambda _
-               (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py")))
+               (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py")
+               #t))
            (replace 'check
              (lambda _
-               (zero? (system* "nosetests"
-                               ;; These tests require internet connection
-                               "--exclude=test_browse"
-                               "--exclude=test_command"
-                               "--exclude=test_search")))))))
+               (invoke "nosetests"
+                       ;; These tests require an Internet connection.
+                       "--exclude=test_browse"
+                       "--exclude=test_command"
+                       "--exclude=test_search"))))))
       (home-page "https://github.com/ncrocfer/clf";)
       (synopsis "Search code snippets on @url{https://commandlinefu.com}";)
       (description "@code{clf} is a command line tool for searching code



reply via email to

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