aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-09 05:09:49 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 10:35:17 +0200
commitc7f5f4e3b191abc7ef2049bcc77333dad255743f (patch)
treeee3ee9659b821105be3a3269a9e5e87d7c1b237c
parent55c56ef599cc1f3279c1f922663abeef130e8f3e (diff)
downloadaports-c7f5f4e3b191abc7ef2049bcc77333dad255743f.tar.bz2
aports-c7f5f4e3b191abc7ef2049bcc77333dad255743f.tar.xz
testing/py-blockchain: new aport
Blockchain API library (v1) https://github.com/blockchain/api-v1-client-python
-rw-r--r--testing/py-blockchain/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/py-blockchain/APKBUILD b/testing/py-blockchain/APKBUILD
new file mode 100644
index 0000000000..3efa61170b
--- /dev/null
+++ b/testing/py-blockchain/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-blockchain
+_pkgname=blockchain
+pkgver=1.3.3
+pkgrel=0
+pkgdesc="Blockchain API library (v1)"
+url="https://github.com/blockchain/api-v1-client-python"
+arch="noarch"
+license="MIT"
+makedepends="python2-dev py-setuptools python3-dev"
+subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ python2 setup.py build || return 1
+ python3 setup.py build || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+ replaces="$pkgname"
+}
+
+_py3() {
+ _py python3
+}
+
+md5sums="dc9cf8a7f603f35f81caa25ee0b3de38 blockchain-1.3.3.tar.gz"
+sha256sums="819b84dde3744d7d057c30f8ba3330fa3906cbf38d4b5ecde9d440bbbcde60f2 blockchain-1.3.3.tar.gz"
+sha512sums="d5a49a7511656711adb6f4e79a82116caa8dc83ba50a66b6855100cbde3faa37297f20f3209245849df99fc8114c45c20a2f4b456d725181bca4f21e7ae3c675 blockchain-1.3.3.tar.gz"