diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-11-19 15:56:16 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-11-19 16:04:34 +0100 |
commit | 020d91f403efcdddbbfe22b64640c4ee62e28aef (patch) | |
tree | 629c4c0af706a042b34dba44135929205f3f7f43 /community/py3-pykka | |
parent | b1a030aeb93e8bb6a23b73ffdcbd6b061fe77e5c (diff) | |
download | aports-020d91f403efcdddbbfe22b64640c4ee62e28aef.tar.bz2 aports-020d91f403efcdddbbfe22b64640c4ee62e28aef.tar.xz |
community/py3-pykka: rename from py-pykka
Diffstat (limited to 'community/py3-pykka')
-rw-r--r-- | community/py3-pykka/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/community/py3-pykka/APKBUILD b/community/py3-pykka/APKBUILD new file mode 100644 index 0000000000..a9e2cd41a4 --- /dev/null +++ b/community/py3-pykka/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=py-pykka +pkgver=2.0.0 +pkgrel=1 +pkgdesc="Concurrency abstractions for Python using the actor model" +url="https://pykka.readthedocs.org/" +arch="noarch" +license="Apache-2.0" +depends="python2 python3" +depends_dev="" +makedepends="python2-dev python3-dev py-setuptools" +install="" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="https://files.pythonhosted.org/packages/source/P/Pykka/Pykka-$pkgver.tar.gz" + +builddir="$srcdir"/Pykka-$pkgver + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="f45789fe8e86f95bbff2e69b3e14d46ff25de400147e1d72fc766188975f66efbe00238fc56e36b5e0c1716369d15d236759be1adf69e01ef9b81ef443d24852 Pykka-2.0.0.tar.gz" |