summaryrefslogtreecommitdiff
path: root/main/py3-fixtures/APKBUILD
blob: 4a56fc9b52c827a942c7193444e06ed4dbb8435f (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
35
36
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-fixtures
pkgver=4.0.1
pkgrel=1
pkgdesc="Fixtures, reusable state for writing clean tests and more."
url="https://pypi.python.org/pypi/fixtures/"
arch="noarch"
license="MIT"
depends="
	py3-pbr
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-testtools py3-mock"
source="https://files.pythonhosted.org/packages/source/f/fixtures/fixtures-$pkgver.tar.gz"
builddir="$srcdir/fixtures-$pkgver"
options="!check" # py3-testtools depends on this

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

build() {
	python3 setup.py build
}

check() {
	python3 -m testtools.run
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
722436f146768e4db1e3312a0db1edab2a7daa86107825fb2436654eaf74e00f569357531316df506ef3f80cef89ac7185aee1adf0b00a6ee85cbc9811ca8100  fixtures-4.0.1.tar.gz
"