void-packages/srcpkgs/python3-uvloop/template

34 lines
921 B
Bash

# Template file for 'python3-uvloop'
pkgname=python3-uvloop
version=0.16.0
revision=2
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3 python3-setuptools python3-Cython"
makedepends="libuv-devel python3-devel"
depends="python3"
checkdepends="flake8 python3-pytest python3-openssl python3-psutil"
short_desc="Fast replacement for Python asyncio event loop"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="Apache-2.0, MIT"
homepage="https://github.com/MagicStack/uvloop"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=b003d3110baf076d3e70c85fb96a434ea67ad2f4c4ccb11cfce7e00ce8565378
do_check() {
# For some reason, setting PYTHONPATH is not sufficient
cp build/lib*/uvloop/*.so uvloop
python3 -m pytest tests -k 'not Test_UV_TCPSSL'
}
post_patch() {
cat <<-EOF >> setup.cfg
[build_ext]
use-system-libuv=1
EOF
}
post_install() {
vlicense LICENSE-MIT
}