guix-commits
[Top][All Lists]
Advanced

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

09/18: gnu: python-trezor-agent: Delete trailing #t and honor TESTS?.


From: guix-commits
Subject: 09/18: gnu: python-trezor-agent: Delete trailing #t and honor TESTS?.
Date: Tue, 7 Jun 2022 09:18:39 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 4e92098e85429ee5896251a164e5f3c8a6eb51ed
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jun 6 17:03:44 2022 -0400

    gnu: python-trezor-agent: Delete trailing #t and honor TESTS?.
    
    * gnu/packages/finance.scm (python-trezor-agent)
    [phases]: Delete trailing #t.
    {check}: Honor TESTS?.  Delete extraneous add-installed-pythonpath call.
---
 gnu/packages/finance.scm | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 1b86f240dd..b02012a72c 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -875,14 +875,12 @@ the Monero GUI client.")
            ;; a built-in implementation supported in python-trezor-agent.
            (lambda _
              (substitute* "setup.py"
-               (("'backports.shutil_which>=3.5.1',") ""))
-             #t))
+               (("'backports.shutil_which>=3.5.1',") ""))))
          (delete 'check)
          (add-after 'install 'check
-           (lambda* (#:key outputs inputs #:allow-other-keys)
-             ;; Make installed package available for running the tests.
-             (add-installed-pythonpath inputs outputs)
-             (invoke "py.test"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest" "-v")))))))
     (propagated-inputs
      (list python-configargparse
            python-daemon



reply via email to

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