From e28aa5ad126cc4209e30afdb4719dd0a5822aa44 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 13 Aug 2025 10:25:57 +0200 Subject: [PATCH] gnu: python-trezor-agent: Update to 0.15.0. * gnu/packages/finance.scm (python-trezor-agent): Update to 0.15.0. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Ignore problematic test. <#:phases>: Improve style. Rely on pyproject tests. [native-inputs]: Add python-setuptools, python-wheel. Change-Id: I949b1a28f0245fa8b448bc4818dee11a5fbbe1c8 Signed-off-by: Sharlatan Hellseher --- gnu/packages/finance.scm | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 205f252b7d77b48dfc396aa928ae8080acbec283..fa3a24068a9cd9d4b81632138f90ae4ad67f24fe 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -1022,7 +1022,7 @@ Bech32 and segwit addresses.") ;; the toplevel app called trezor-agent. (package (name "python-trezor-agent") - (version "0.14.7") + (version "0.15.0") (source (origin (method git-fetch) @@ -1031,22 +1031,21 @@ Bech32 and segwit addresses.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "04dds5bbw73nk36zm8d02qw6qr92nrlcf8r1cq8ba96mzi34jbk0")))) - (build-system python-build-system) + (base32 "09y55ys3x5krszh58yhl5gpdri0zrlhfld6psrmiyxfbp344asin")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'remove-requires-backports-shutil-which - ;; Remove requires on backport of shutil_which, as python 3.4+ has - ;; a built-in implementation supported in python-trezor-agent. - (lambda _ - (substitute* "setup.py" - (("'backports.shutil_which>=3.5.1',") "")))) - (delete 'check) - (add-after 'install 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-v"))))))) + (list + #:test-flags + ;; XXX: Requires $HOME to be /run/user. + #~(list "-k" "not test_get_agent_sock_path") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-requires-backports-shutil-which + ;; Remove requires on backport of shutil_which, as python 3.4+ has + ;; a built-in implementation supported in python-trezor-agent. + (lambda _ + (substitute* "setup.py" + (("'backports.shutil_which>=3.5.1',") ""))))))) (propagated-inputs (list python-bech32 python-configargparse @@ -1064,7 +1063,9 @@ Bech32 and segwit addresses.") (native-inputs ; Only needed for running the tests (list gnupg python-mock - python-pytest)) + python-pytest + python-setuptools + python-wheel)) (home-page "https://github.com/romanz/trezor-agent") (synopsis "Use hardware wallets as SSH and GPG agent") (description