diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-08-13 10:25:57 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-14 13:15:25 +0100 |
| commit | e28aa5ad126cc4209e30afdb4719dd0a5822aa44 (patch) | |
| tree | b72983deab4635bca05aab1f763196c745ac13ca | |
| parent | 00df32ae97d40f763e147272ef979bb229a6f075 (diff) | |
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 <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/finance.scm | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 205f252b7d7..fa3a24068a9 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 |
