aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-parameterized/APKBUILD
blob: dff232b6a01c04e21054c0e32ccdd08e04c3551d (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
33
34
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-parameterized
_pkgname=parameterized
pkgver=0.7.4
pkgrel=0
pkgdesc="Parameterized testing with any Python test framework"
url="https://github.com/wolever/parameterized"
arch="noarch !mips !mips64"
license="BSD-2-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-mock py3-pytest"
source="https://files.pythonhosted.org/packages/source/p/parameterized/parameterized-$pkgver.tar.gz"
builddir="$srcdir/"$_pkgname-$pkgver

replaces="py-parameterized" # Backwards compatibility
provides="py-parameterized=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	nosetests
	py.test-3 parameterized/test.py
	python3 -m unittest parameterized.test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="71c51ad57900f5b1b6f4866c60ba4d23649df7740e7f7e735a2e0faf4810bc8dc552a1647da8c174f8a0b80db7de5727ce24dabc9fee6b4cfe12ee98c18945d7  parameterized-0.7.4.tar.gz"