[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Aug 1 18:23:42 UTC 2021


    Date: Sunday, August 1, 2021 @ 18:23:41
  Author: felixonmars
Revision: 991987

addpkg: python-fluidity 0.2.1-1

Added:
  python-fluidity/
  python-fluidity/repos/
  python-fluidity/trunk/
  python-fluidity/trunk/PKGBUILD

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

Added: python-fluidity/trunk/PKGBUILD
===================================================================
--- python-fluidity/trunk/PKGBUILD	                        (rev 0)
+++ python-fluidity/trunk/PKGBUILD	2021-08-01 18:23:41 UTC (rev 991987)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-fluidity
+pkgver=0.2.1
+_commit=468627ea13ed4c3043dc67ccc1ff16089fdb7b25
+pkgrel=1
+pkgdesc="Fluidity: state machine implementation for Python objects"
+url="https://github.com/nsi-iff/fluidity"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-should-dsl')
+source=("https://github.com/nsi-iff/fluidity/archive/$_commit/$pkgname-$_commit.tar.gz")
+sha512sums=('9c80fb3480fe4167247374f4fb8f1d8d8b77cb7d485d26518485b06b628d70f7bf0d538c4b6a08bf071bccff3082c7266e446d1682984a60e447c0d090b0f899')
+
+build() {
+  cd fluidity-$_commit
+  python setup.py build
+}
+
+check() {
+  cd fluidity-$_commit
+  (
+    export PYTHONPATH="$PWD"
+    # Copied from https://github.com/nsi-iff/fluidity/blob/master/tox.ini
+    python spec/callable_support_spec.py
+    python spec/callback_order_spec.py
+    python spec/configuration_spec.py
+    python spec/event_parameters_spec.py
+    python spec/event_spec.py
+    python spec/guard_spec.py
+    python spec/individuation_spec.py
+    python spec/one_event_multiple_transitions_spec.py
+    python spec/state_action_spec.py
+    python spec/state_spec.py
+    python spec/transition_action_spec.py
+    python spec/boolean_state_getters_spec.py
+  )
+}
+
+package() {
+  cd fluidity-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list