diff options
Diffstat (limited to 'community/py3-gevent/APKBUILD')
-rw-r--r-- | community/py3-gevent/APKBUILD | 54 |
1 files changed, 43 insertions, 11 deletions
diff --git a/community/py3-gevent/APKBUILD b/community/py3-gevent/APKBUILD index bd2dd18a771..6eabe9b4c14 100644 --- a/community/py3-gevent/APKBUILD +++ b/community/py3-gevent/APKBUILD @@ -1,33 +1,65 @@ # Maintainer: Michael Zhou <zhoumichaely@gmail.com> # Contributor: Michael Zhou <zhoumichaely@gmail.com> pkgname=py3-gevent -_pkgname=gevent -pkgver=21.1.2 +pkgver=23.9.1 pkgrel=0 pkgdesc="Python3 library for seamless coroutine-based concurrency" -options="!check" # Requires unpackaged 'objgraph' -url="http://gevent.org/" +url="https://gevent.org/" arch="all" license="MIT" -depends="py3-greenlet" -makedepends="py3-setuptools python3-dev c-ares-dev libevent-dev libev-dev file cython" -source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" +depends=" + py3-cffi + py3-greenlet + py3-zope-event + py3-zope-interface + " +makedepends=" + c-ares-dev + cython + file + libev-dev + libevent-dev + libuv-dev + py3-gpep517 + py3-setuptools + py3-wheel + python3-dev + " +checkdepends="python3-tests py3-objgraph" +subpackages="$pkgname-pyc" +source="https://github.com/gevent/gevent/archive/$pkgver/gevent-$pkgver.tar.gz" +builddir="$srcdir/gevent-$pkgver" +options="!check" # tests fail replaces="py-gevent" # Backwards compatibility provides="py-gevent=$pkgver-r$pkgrel" # Backwards compatibility build() { export GEVENTSETUP_EMBED=0 - CYTHON=cython PYTHON=python3 python3 setup.py build + export GEVENTSETUP_EMBED_LIBEV=0 + + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer \ + .dist/gevent*.whl + .testenv/bin/python3 -m gevent.tests } package() { export GEVENTSETUP_EMBED=0 - python3 setup.py install --prefix=/usr --root="$pkgdir" + export GEVENTSETUP_EMBED_LIBEV=0 + + python3 -m installer -d "$pkgdir" \ + .dist/gevent*.whl rm -rf "$pkgdir"/usr/lib/python3*/site-packages/*/tests } + sha512sums=" -7dae1dc766bc3cd36312c2b3d11b9ff77a8258b54a39f79357296d4c69d54ec60d6dc4cd8b4299dda26e0f8b93f670e061f3c50e13da33bea5a43d6497d14c4a py3-gevent-21.1.2.tar.gz +c620543a2d347b9cad8f6d602d2d2b48bfcbd0f66df685751b37f14515199f6aa031b588210453715560323cfbb07981e211d073a7a13c34940ee204ab031e43 gevent-23.9.1.tar.gz " |