me
/
guix
Archived
1
0
Fork 0

gnu: trezor-agent: Update to 0.11.0.

* gnu/packages/finance.scm (trezor-agent): Update to 0.11.0.
[source]: Use GitHub repository.
[native-inputs]: Remove python-hidapi.  Add python-attrs.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
master
Attila Lendvai 2021-11-28 21:23:24 +01:00 committed by Nicolas Goaziou
parent 857098830b
commit d3448fafea
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 32 additions and 8 deletions

View File

@ -1102,16 +1102,40 @@ the KeepKey Hardware Wallet.")
(define-public trezor-agent (define-public trezor-agent
(package (package
(name "trezor-agent") (name "trezor-agent")
(version "0.10.0") (version "0.11.0")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "trezor_agent" version)) (uri (git-reference
(url "https://github.com/romanz/trezor-agent")
;; The version mismatch is not a mistake. Multiple python
;; apps/packages are in the same git repo, and they have
;; different versions. The git tag seems to track libagent,
;; i.e. python-trezor-agent in the Guix namespace.
;; See e.g. ./agents/trezor/setup.py
(commit "v0.14.2")))
(sha256 (sha256
(base32 (base32 "0nl44ldfw9s2v3p7g5bldfw3ds2hz9r28j42bpnp8bj0v5na3ivk"))
"144657c7bn0a667dq5fv5r6j7iilxf3h9agj29v1m2qpq40g0az8")))) (modules
'((guix build utils)
(ice-9 ftw)
(srfi srfi-1)
(srfi srfi-26)))
(snippet
'(begin
;; Delete everything except ./agents/trezor/
(for-each delete-file-recursively
(filter (lambda (full-name)
(not (string-prefix? "./agents/trezor/" full-name)))
(find-files ".")))
;; Move ./agents/trezor/* to the toplevel
(for-each (lambda (file-name)
(rename-file (string-append "./agents/trezor/" file-name)
(string-append "./" file-name)))
(scandir "./agents/trezor/"
(negate (cut member <> '("." "..") string=))))
(delete-file-recursively "./agents")))))
(arguments (arguments
;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'wrap 'fixup-agent-py (add-after 'wrap 'fixup-agent-py
@ -1134,7 +1158,7 @@ the KeepKey Hardware Wallet.")
`(("python-trezor" ,python-trezor) `(("python-trezor" ,python-trezor)
("python-trezor-agent" ,python-trezor-agent))) ("python-trezor-agent" ,python-trezor-agent)))
(native-inputs (native-inputs
`(("python-hidapi" ,python-hidapi))) `(("python-attrs" ,python-attrs)))
(home-page "https://github.com/romanz/trezor-agent") (home-page "https://github.com/romanz/trezor-agent")
(synopsis "Using Trezor as hardware SSH/GPG agent") (synopsis "Using Trezor as hardware SSH/GPG agent")
(description "This package allows using Trezor as a hardware SSH/GPG (description "This package allows using Trezor as a hardware SSH/GPG