aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-automat/APKBUILD
blob: 488ee637f17f2fabbcd4c04e402995a54c4a839f (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Tiago Ilieve <tiago.myhro@gmail.com>
# Maintainer: Tiago Ilieve <tiago.myhro@gmail.com>
pkgname=py3-automat
pkgver=20.2.0
pkgrel=0
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 py3-setuptools_scm"
checkdepends="py3-pytest py3-pluggy"
source="$pkgname-$pkgver.tar.gz::https://github.com/glyph/automat/archive/v$pkgver.tar.gz"
builddir="$srcdir/automat-$pkgver"

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

prepare() {
	default_prepare

	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
}

build() {
	python3 setup.py build
}

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

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

sha512sums="ccba3e82f589fedb1f83dfb37a6a42b51a78d8c3e6fea22c9518135ff194f5f70e2f9c5f0eab50b6e116dae92c94754aac8dbf0e670a59015c916991736b4076  py3-automat-20.2.0.tar.gz"