# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-tenacity
_pkgname=tenacity
pkgver=8.3.0
pkgrel=0
pkgdesc="general-purpose retrying library"
url="https://tenacity.readthedocs.io/"
arch="noarch"
license="Apache-2"
depends="python3"
makedepends="py3-setuptools py3-pytest py3-setuptools_scm"
checkdepends="py3-tornado py3-typeguard"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	pytest -v
}

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

sha512sums="
46152ffacc0a87931cec09bd90eed3d2ad46f89101997c5da2aa510844c814b887a83805b4ec0de6a56759a7f2bcbab0cb2b2f1a4e6c11860ae53f64ff2a4c31  tenacity-8.3.0.tar.gz
"
