# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Patrick McCarty <pnorcks at gmail dot com>

pkgname=python-tappy
_pyname=tap.py
pkgver=3.1
pkgrel=5
pkgdesc="Test Anything Protocol (TAP) tools for Python"
arch=(any)
url="https://pypi.python.org/pypi/tap.py"
license=('BSD')
depends=('python' 'python-babel' 'python-pyaml' 'python-more-itertools')
makedepends=('python-setuptools')
checkdepends=('python-tests')
options=(!emptydirs)
source=(https://files.pythonhosted.org/packages/source/t/${_pyname}/${_pyname}-${pkgver}.tar.gz)
sha256sums=('3c0cd45212ad5a25b35445964e2517efa000a118a1bfc3437dae828892eaf1e1')

check() {
	cd "$_pyname-$pkgver"
	python -m unittest discover -v
}

package() {
	cd "$_pyname-$pkgver"
	python setup.py install --root="$pkgdir/" --optimize=1
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
