void-packages/srcpkgs/python3-async-timeout/template

25 lines
811 B
Bash

# Template file for 'python3-async-timeout'
pkgname=python3-async-timeout
version=3.0.1
revision=3
wrksrc="async-timeout-${version}"
build_style=python3-module
pycompile_module="async_timeout"
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest-asyncio"
short_desc="Timeout context manager for asyncio programs"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Apache-2.0"
#changelog="https://raw.githubusercontent.com/aio-libs/async-timeout/master/CHANGES.rst"
homepage="https://github.com/aio-libs/async-timeout"
distfiles="https://github.com/aio-libs/async-timeout/archive/v${version}.tar.gz"
checksum=d0a7a927ed6b922835e1b014dfcaa9982caccbb25131320582cc660af7c93949
do_check() {
# don't enable coverage
sed -i '/addopts=/d' setup.cfg
python3 -m pytest
}