# Maintainer: Michael Zhou # Contributor: Michael Zhou pkgname=py3-gevent pkgver=22.10.2 pkgrel=3 pkgdesc="Python3 library for seamless coroutine-based concurrency" url="http://gevent.org/" arch="all" license="MIT" depends=" py3-cffi py3-greenlet py3-setuptools 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" 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 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 export GEVENTSETUP_EMBED_LIBEV=0 python3 -m installer -d "$pkgdir" \ dist/gevent*.whl rm -rf "$pkgdir"/usr/lib/python3*/site-packages/*/tests } sha512sums=" 9ceb8e03016cd2fe8fa58f9fb65daa1b52b80a25067bb0fa8fc4b744695b85b0ba003e933783dd4546f4600f2859c08d5627e322ccfbc5a6fa3a8e4d67f59a5f gevent-22.10.2.tar.gz "