[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: Add python-trezor-agent.
From: |
Danny Milosavljevic |
Subject: |
01/01: gnu: Add python-trezor-agent. |
Date: |
Mon, 25 Dec 2017 19:08:43 -0500 (EST) |
dannym pushed a commit to branch master
in repository guix.
commit 00d3f022b386713ab5d14a2ddfdf7f0fb866f366
Author: Danny Milosavljevic <address@hidden>
Date: Tue Dec 26 01:04:40 2017 +0100
gnu: Add python-trezor-agent.
* gnu/packages/finance.scm (python-trezor-agent, python2-trezor-agent): New
variables.
---
gnu/packages/finance.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 788f7c0..ad36502 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -492,3 +492,44 @@ Monero command line client and daemon.")
"Monero is a secure, private, untraceable currency. This package
provides the
Monero GUI client.")
(license license:bsd-3)))
+
+(define-public python-trezor-agent
+ (package
+ (name "python-trezor-agent")
+ (version "0.9.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/romanz/trezor-agent/archive/v"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0h8jb147vpjk7mqbl4za0xdh7lblhx07n9dfk80kn2plwnvrry1x"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (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"))))))
+ (propagated-inputs
+ `(("python-ecdsa" ,python-ecdsa)
+ ("python-ed25519" ,python-ed25519)
+ ("python-semver" ,python-semver)
+ ("python-unidecode" ,python-unidecode)))
+ (native-inputs
+ `(("python-mock" ,python-mock)
+ ("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/romanz/trezor-agent")
+ (synopsis "TREZOR SSH and GPG host support")
+ (description
+ "@code{libagent} is a library that allows using TREZOR, Keepkey and
+Ledger Nano as a hardware SSH/GPG agent.")
+ (license license:lgpl3)))
+
+(define-public python2-trezor-agent
+ (package-with-python2 python-trezor-agent))