# Contributor: Leo # Contributor: Tiago Ilieve # Maintainer: Tiago Ilieve 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"