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.
This commit is contained in:
Maxim Cournoyer 2022-06-06 17:03:44 -04:00
parent 08063e55ba
commit 4e92098e85
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -875,14 +875,12 @@ (define-public python-trezor-agent
;; 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