[arch-commits] Commit in python-automat/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Thu Apr 14 15:43:48 UTC 2022


    Date: Thursday, April 14, 2022 @ 15:43:48
  Author: felixonmars
Revision: 442533

archrelease: copy trunk to community-any

Added:
  python-automat/repos/community-any/
  python-automat/repos/community-any/PKGBUILD
    (from rev 442532, python-automat/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-automat/repos/community-any/PKGBUILD (from rev 442532, python-automat/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-04-14 15:43:48 UTC (rev 442533)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-automat
+pkgver=20.2.0
+pkgrel=9
+arch=('any')
+license=('MIT')
+pkgdesc="Self-service finite-state machines for the programmer on the go."
+url="https://github.com/glyph/automat"
+depends=('python-attrs' 'python-six')
+makedepends=('python-setuptools-scm' 'm2r')
+checkdepends=('python-pytest' 'python-twisted' 'python-graphviz')
+source=("https://github.com/glyph/automat/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('ccba3e82f589fedb1f83dfb37a6a42b51a78d8c3e6fea22c9518135ff194f5f70e2f9c5f0eab50b6e116dae92c94754aac8dbf0e670a59015c916991736b4076')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd automat-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd automat-$pkgver
+  python -m pytest --deselect benchmark
+}
+
+package() {
+  cd automat-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/python-automat/
+}



More information about the arch-commits mailing list