archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-tenacity / trunk / PKGBUILD
blobdc07d8c3ab9445bd8050d3661e3ab90106ea8f8e
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-tenacity
4 pkgver=8.2.2
5 _commit=548c5d490187af6f339cbffdd0add38aecc3ecb0
6 pkgrel=3
7 pkgdesc='Retry code until it succeeeds'
8 arch=('any')
9 license=('Apache')
10 url='https://github.com/jd/tenacity'
11 depends=('python')
12 optdepends=('python-tornado: for Tornado coroutines support')
13 makedepends=('git' 'python-setuptools-scm')
14 checkdepends=('python-pytest' 'python-tornado' 'python-typeguard')
15 source=("git+https://github.com/jd/tenacity.git#commit=$_commit" "fix-tests-for-typeguard-3.patch")
16 sha512sums=('SKIP'
17             'a57faa9ddc1dd5a78d67691f5023b723fdd3fd643c3c3389f446244962f8c410e7f1a7d34b705e1488a4ea443f7cc6b716eff5bc354a7c1ac449fc65c6c869f0')
19 prepare() {
20   cd tenacity
21   patch -Np1 -i ${srcdir}/fix-tests-for-typeguard-3.patch
24 build() {
25   cd tenacity
26   python setup.py build
29 check() {
30   cd tenacity
31   pytest
34 package() {
35   cd tenacity
36   python setup.py install --root="$pkgdir" --optimize=1