void-packages/srcpkgs/python3-gevent/template

33 lines
994 B
Bash

# Template file for 'python3-gevent'
pkgname=python3-gevent
version=22.10.2
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 <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.gevent.org/"
distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
checksum=01ea78981520c9cdbe3722e1760a8ed0165a0b576cb5209f67881595561509da
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
}