void-packages/srcpkgs/python3-yarl/template

27 lines
732 B
Bash

# Template file for 'python3-yarl'
pkgname=python3-yarl
version=1.9.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython"
makedepends="python3-devel"
depends="python3-idna python3-multidict"
checkdepends="python3-idna python3-multidict python3-pytest"
short_desc="Yet another URL library"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Apache-2.0"
homepage="https://yarl.readthedocs.io/"
distfiles="${PYPI_SITE}/y/yarl/yarl-${version}.tar.gz"
checksum=04ab9d4b9f587c06d801c2abfe9317b77cdf996c65a90d5e84ecc45010823571
pre_build() {
cythonize yarl/_quoting_c.pyx
}
do_check() {
vsed -e '/addopts/d' -i setup.cfg
cp -f build/lib.linux-*/yarl/*.so yarl
python3 -m pytest
}