# Contributor: TBK # Maintainer: TBK pkgname=py3-pytest-cov _pkgname=${pkgname#py3-} pkgver=2.8.1 pkgrel=1 pkgdesc="Pytest plugin for measuring coverage." options="!check" # Requires unpackaged 'fields' module url="https://github.com/pytest-dev/pytest-cov" arch="noarch" license="MIT" replaces="pytest-cov" # for backwards compatibility provides="pytest-cov=$pkgver-r$pkgrel" # for backwards compatibility depends="py3-pytest py3-coverage" makedepends="py3-setuptools" #py3-pytest-xdist introduces a circular dependency #checkdepends="py3-virtualenv py3-pytest-xdist" source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-cov/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { pytest-3 } package() { python3 setup.py install --prefix="/usr" --root="$pkgdir" } sha512sums="63e4180a5e64579c87aada2f5f3afb5bfe4c4d3f4d39d694abebb05c56761b758cb9a5ccc96569acea595b9333412f34be6b1a0e1cea8a9b580694bfa11df303 py3-pytest-cov-2.8.1.tar.gz"