aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pytest-cov/APKBUILD
blob: 042eeb57710818aa5c1d07b1bfba9e0f67c8b299 (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.7.1
pkgrel=0
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="pytest 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="bb2bc5be49b3c2f56a36b6396d6b1a6734e86fb0bf1c2ef29bf8dbc95dcb9364c6deb1525529d46f4ec0ffa6899ef0e94b5f76e5ed892b0a092e69ad6c6e080e  py3-pytest-cov-2.7.1.tar.gz"