aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-testresources/APKBUILD
blob: 6b0a002c5f670144e9c3adc3ee7d4cfb59b9fed1 (plain) (blame)
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
# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=py3-testresources
_pyname=testresources
pkgver=2.0.1
pkgrel=0
pkgdesc="A pyunit extension for managing expensive test resources"
url="https://launchpad.net/testresources"
arch="noarch"
license="Apache-2.0 OR BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools py3-pbr"
checkdepends="py3-testtools"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="0b23432b019400fe378e957d14a91083eef7fe1130a494b567a5274d69e4e8e09ab75861e5453c3f217507e144cf179c908f84dd1a807992d4bee0b8d32cb0f4  testresources-2.0.1.tar.gz"