30 lines
893 B
Bash
30 lines
893 B
Bash
# Template file for 'python3-uvloop'
|
|
pkgname=python3-uvloop
|
|
version=0.20.0
|
|
revision=1
|
|
build_style=python3-pep517
|
|
make_check_target="../tests"
|
|
hostmakedepends="python3 python3-setuptools python3-wheel python3-Cython0.29"
|
|
makedepends="libuv-devel python3-devel"
|
|
depends="python3"
|
|
checkdepends="flake8 python3-pytest-xdist 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=9fa2458b6aa280aa4268bc0054ef53cefb624463f2b5ff09db3ce406ea581f94
|
|
# Must not be in wrksrc to avoid failed imports from current directory
|
|
make_check_pre="env -C .xbps-testdir"
|
|
|
|
post_patch() {
|
|
cat <<-EOF >> setup.cfg
|
|
[build_ext]
|
|
use-system-libuv=1
|
|
EOF
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE-MIT
|
|
}
|