void-packages/srcpkgs/python3-yarl/template

24 lines
693 B
Bash

# Template file for 'python3-yarl'
pkgname=python3-yarl
version=1.8.1
revision=1
build_style=python3-module
pycompile_module="yarl"
hostmakedepends="python3-setuptools"
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=af887845b8c2e060eb5605ff72b6f2dd2aab7a761379373fd89d314f4752abbf
do_check() {
vsed -e '/addopts/d' -i setup.cfg
cp -f build/lib.linux-*/yarl/*.so yarl
python3 -m pytest
}