aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pytest-cov/APKBUILD
blob: 573aacbe1c05b022aef068b3cd1c2f78f14587d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
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"
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"