aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-12-28 09:34:20 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2017-12-28 09:34:20 +0100
commit1dca32e3b9dbb72b75b3f4e016ba165d4bd7d4b6 (patch)
tree1a3a62d0c9b762cda443af82cc0489da5f2c4a68
parent96f5e2e9e4f774e2d964f76b53e6455e4e59fb8d (diff)
downloadpatches-1dca32e3b9dbb72b75b3f4e016ba165d4bd7d4b6.tar
patches-1dca32e3b9dbb72b75b3f4e016ba165d4bd7d4b6.tar.gz
gnu: Add python-trezor.
* gnu/packages/finance.scm (python-trezor, python2-trezor): New variables.
-rw-r--r--gnu/packages/finance.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 0322ef7ead..c35ace4546 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -586,3 +586,31 @@ Ledger Blue/Nano S.")
(define-public python2-ledgerblue
(package-with-python2 python-ledgerblue))
+(define-public python-trezor
+ (package
+ (name "python-trezor")
+ (version "0.7.16")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "trezor" version))
+ (sha256
+ (base32
+ "055kii56wgwadl5z911s59ya2fnsqzk3n5i19s2hb9sv2by6knvb"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-ecdsa" ,python-ecdsa)
+ ("python-hidapi" ,python-hidapi)
+ ("python-mnemonic" ,python-mnemonic)
+ ("python-protobuf" ,python-protobuf)
+ ("python-requests" ,python-requests)))
+ (native-inputs
+ `(("python-pyqt" ,python-pyqt))) ; Tests
+ (home-page "https://github.com/trezor/python-trezor")
+ (synopsis "Python library for communicating with TREZOR Hardware Wallet")
+ (description "@code{trezor} is a Python library for communicating with
+TREZOR Hardware Wallet.")
+ (license license:lgpl3)))
+
+(define-public python2-trezor
+ (package-with-python2 python-trezor))