# Template file for 'python3-gevent' pkgname=python3-gevent version=23.9.1 revision=1 build_style=python3-module hostmakedepends="python3-setuptools python3-Cython" makedepends="python3-devel libev-devel libuv-devel c-ares-devel python3-greenlet-devel" depends="python3-dnspython python3-greenlet python3-zope.event python3-zope.interface" checkdepends="${depends} iana-etc" short_desc="Coroutine-based Python3 networking library" maintainer="Orphaned " license="MIT" homepage="http://www.gevent.org/" distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz" checksum=6d38bb2a80d2cb08becdf52ebb007770107adbf2f2a66bc8eaa750501b0ca006 post_extract() { # purge bundled dependencies rm -rf deps } do_check() { PYTHONPATH="$(cd build/lib* && pwd)" python3 -m gevent.tests } post_install() { vlicense LICENSE # remove python2 compat stuff rm -f ${DESTDIR}/${py3_sitelib}/gevent/_*2.py # don't ship tests rm -rf ${DESTDIR}/${py3_sitelib}/gevent/tests }