summaryrefslogtreecommitdiff
path: root/community/py3-pytest-subtests/APKBUILD
blob: 09235210f41a31b8801518eab8b3107c3defad33 (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
# Contributor: Jacek Pruciak <alpine@juniorjpdj.pl>
# Maintainer: Jacek Pruciak <alpine@juniorjpdj.pl>
pkgname=py3-pytest-subtests
pkgver=0.9.0
pkgrel=1
pkgdesc="pytest plugin for subTest() support and subtests fixture"
url="https://github.com/pytest-dev/pytest-subtests/"
arch="noarch"
license="MIT"
depends="python3 py3-pytest"
makedepends="py3-setuptools py3-setuptools_scm"
checkdepends="py3-pytest-xdist"
source="https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-$pkgver.tar.gz"
builddir="$srcdir/pytest-subtests-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/build/lib:$PYTHONPATH" pytest -v
}

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

sha512sums="
b331c32694f81892782beb435d076ee4588888b4721002d7e0993e459f1a847fccb5820b7b09e6dc3f456a2b6d0b8ba279516a1893cc5fca20314b6e2769581e  pytest-subtests-0.9.0.tar.gz
"