From c7f5f4e3b191abc7ef2049bcc77333dad255743f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 9 Nov 2016 05:09:49 +0000 Subject: testing/py-blockchain: new aport Blockchain API library (v1) https://github.com/blockchain/api-v1-client-python --- testing/py-blockchain/APKBUILD | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 testing/py-blockchain/APKBUILD 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 +# Maintainer: Fabian Affolter +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" -- cgit v1.2.3