Subject: [PATCH 5/8] gnu: Add python-automat.

From: Troy Sankey <[email-masked]>
Date: Mon, 20 Feb 2017 01:37:39 -0500

* gnu/packages/python.scm (python-automat, python2-automat): New
variables.
---
 gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5e2da0b27..e91beff18 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12709,6 +12709,35 @@ Python.  It is based on Parsing Expression Grammars, PEG.  With pyPEG you can
 parse many formal languages.")
     (license license:gpl2)))
 
+(define-public python-automat
+  (package
+    (name "python-automat")
+    (version "0.5.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "Automat" version))
+        (sha256
+          (base32
+            "1hnpknkqnc2m900kkzrzx9l6g5dy5dassrdj9pn34x1pcdkyr2a8"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-m2r" ,python-m2r)
+       ("python-setuptools-scm" ,python-setuptools-scm)))
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-attrs" ,python-attrs)))
+    (home-page "https://github.com/glyph/Automat")
+    (synopsis
+      "Self-service finite-state machines for the programmer on the go")
+    (description "Automat is a library for concise, idiomatic Python expression
+of finite-state automata (particularly deterministic finite-state
+transducers).")
+    (license license:expat)))
+
+(define-public python2-automat
+  (package-with-python2 python-automat))
+
 (define-public python-m2r
   (package
     (name "python-m2r")
-- 
2.11.1