summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxaiuweb2018-01-03 22:18:15 +0800
committerxaiuweb2018-01-03 22:18:15 +0800
commit944d466656cdc630852287ced31b6fa2c688466b (patch)
treeeacbb144fc4f4a476317b399904130792b661be3
downloadaur-944d466656cdc630852287ced31b6fa2c688466b.tar.gz
Add python-trezor package
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD38
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e58dfb143b2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = python-trezor
+ pkgdesc = Python 3 library for communicating with the TREZOR Bitcoin hardware wallet
+ pkgver = 0.7.16
+ pkgrel = 1
+ url = https://github.com/trezor/python-trezor
+ arch = any
+ license = LGPL3
+ makedepends = python-setuptools
+ depends = protobuf
+ depends = python
+ depends = python-ecdsa
+ depends = python-hidapi
+ depends = python-mnemonic
+ depends = python-protobuf
+ depends = python-requests
+ provides = python-trezor
+ provides = trezorctl
+ conflicts = trezorctl
+ options = !emptydirs
+ source = https://pypi.python.org/packages/3c/77/aa10c0fd4e8c5112f5b5da23852860acb188802330cb82f27f91f176caa2/trezor-0.7.16.tar.gz
+ md5sums = dd274b1390ee12a3d5d534e25f77a365
+ sha256sums = 6bdb69fc125ba705854e21163be6c7da3aa17c2a3a84f40b6d8a3f6e4a8cb314
+
+pkgname = python-trezor
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ba76ca966db
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Xaiuweb <xaiuweb@protonmail.ch>
+# Contributor: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=python-trezor
+pkgver=0.7.16
+pkgrel=1
+pkgdesc="Python 3 library for communicating with the TREZOR Bitcoin hardware wallet"
+arch=('any')
+depends=('protobuf'
+ 'python'
+ 'python-ecdsa'
+ 'python-hidapi'
+ 'python-mnemonic'
+ 'python-protobuf'
+ 'python-requests')
+makedepends=('python-setuptools')
+url="https://github.com/trezor/python-trezor"
+license=('LGPL3')
+options=(!emptydirs)
+source=(https://pypi.python.org/packages/3c/77/aa10c0fd4e8c5112f5b5da23852860acb188802330cb82f27f91f176caa2/trezor-0.7.16.tar.gz)
+md5sums=('dd274b1390ee12a3d5d534e25f77a365')
+sha256sums=('6bdb69fc125ba705854e21163be6c7da3aa17c2a3a84f40b6d8a3f6e4a8cb314')
+provides=('python-trezor' 'trezorctl')
+conflicts=('trezorctl')
+
+build() {
+ cd "$srcdir/${pkgname#python-}-$pkgver"
+
+ msg2 'Building...'
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/${pkgname#python-}-$pkgver"
+
+ msg2 'Installing...'
+ python setup.py install --root="$pkgdir" --optimize=1
+}