aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-transitions/APKBUILD
blob: 4f80c6f79733560b3ffc74778f8ee38a5350533b (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
37
38
39
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-transitions
_pyname=transitions
pkgver=0.8.11
pkgrel=1
pkgdesc="A lightweight, object-oriented Python state machine implementation"
url="https://github.com/pytransitions/transitions"
arch="noarch"
license="MIT"
depends="py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pycodestyle py3-graphviz"
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver

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

prepare() {
	default_prepare
	rm tests/test_codestyle.py
}

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

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

sha512sums="
0546d5e5cb44d9e368a20cbe80d69b54e60b1ed9b5317548be9a779b7d1c8dc703432ae2dfa6cb336936414f3a279ee8662cebaf747322dbe48de2f3267f4f3a  transitions-0.8.11.tar.gz
"