# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-flaky
pkgver=3.8.1
pkgrel=1
pkgdesc="Plugin for nose or pytest that automatically reruns flaky tests"
url="https://github.com/box/flaky"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
checkdepends="
	py3-genty
	py3-mock
	py3-nose
	py3-pytest
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/f/flaky/flaky-$pkgver.tar.gz"
options="!check" # Broken
builddir="$srcdir/flaky-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

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

sha512sums="
486b8aeb9a63c5b4dfb0cf4a0ad86b29e90cdc4a604cdca7676c4b918fc4bb40e185fcc23a205a12916fd2b99316a2a89ca363b3f6efe2ebfb1e93722b4f4547  flaky-3.8.1.tar.gz
"
