33 lines
981 B
Bash
33 lines
981 B
Bash
# Template file for 'python3-gevent'
|
|
pkgname=python3-gevent
|
|
version=21.1.2
|
|
revision=3
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-Cython"
|
|
makedepends="python3-devel libev-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 <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://www.gevent.org/"
|
|
distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
|
|
checksum=1fc6579fee04c0bc348cb1dcbc10f822129e6af7dcf2c52c24f1497cea3bd45c
|
|
|
|
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
|
|
}
|