aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-automat/APKBUILD
blob: 8285c5413c25bface8a2a250f66e63dc4ead253c (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
40
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Tiago Ilieve <tiago.myhro@gmail.com>
# Maintainer: Tiago Ilieve <tiago.myhro@gmail.com>
pkgname=py3-automat
_pkgname=Automat
pkgver=0.8.0
pkgrel=1
pkgdesc="Self-service finite-state machines for the programmer on the go"
url="https://automat.readthedocs.io/"
arch="noarch"
license="MIT"
depends="py3-attrs py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pluggy"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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

prepare() {
	sed -i setup.py \
		-e "/print(/d" \
		-e "/setup_requires=/,+3d" \
		-e "s/use_scm_version=True/version='${pkgver}'/"
}

build() {
	python3 setup.py build
}

check() {
	py.test-3 automat/_test
}

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

sha512sums="2dbd4e784f65b02a8c93fc5f15236df3649d667a9792f6cac929dbac5d971495bdab4825df0fcd6817b9a9f79b7a5d8cfbdf8e4d18605f0761546b31b3091ad7  Automat-0.8.0.tar.gz"