# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-async-timeout
_pkgname=async-timeout
pkgver=4.0.3
pkgrel=1
pkgdesc="Timeout context manager for asyncio programs"
url="https://pypi.org/project/async_timeout"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-typing-extensions"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-asyncio"
makedepends="python3-dev py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --root="$pkgdir"
}

sha512sums="
d7628370c47587a64170e067a5341bba17658da10900fb8ddf4426aa3f4facc55d63b28febb4b65abe12a9ff5be759319f49fc723c82a5a6cc27377c5e33a5a0  py3-async-timeout-4.0.3.tar.gz
"
