db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / python-automat / repos / extra-any / PKGBUILD
blob7f97981a59504827fc8b2b3d4592c5ce39ad843a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-automat
4 pkgver=22.10.0
5 pkgrel=3
6 arch=('any')
7 license=('MIT')
8 pkgdesc="Self-service finite-state machines for the programmer on the go."
9 url="https://github.com/glyph/automat"
10 depends=('python-attrs' 'python-six')
11 makedepends=('python-setuptools-scm' 'python-wheel')
12 checkdepends=('python-pytest-benchmark' 'python-twisted' 'python-graphviz')
13 optdepends=('python-graphviz: for automat-visualize'
14             'python-twisted: for automat-visualize')
15 source=("https://github.com/glyph/automat/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
16 sha512sums=('16caea66a8621b7d50e68e94007085218ec40ae0f57599d5076ed1915d4a2ebabd2da66659ba70acb9c6d30bc354bcd6126f913af0c0a005db305ca0c203481d')
18 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
20 build() {
21   cd automat-$pkgver
22   python setup.py build
25 check() {
26   cd automat-$pkgver
27   pytest
30 package() {
31   cd automat-$pkgver
32   python setup.py install --root="$pkgdir" --optimize=1
33   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/python-automat/