gnu: Add python-speg.
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 16 Jan 2020 15:49:23 +0000 (16:49 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 16 Jan 2020 16:09:48 +0000 (17:09 +0100)
* gnu/packages/python-xyz.scm (python-speg): New variable.

gnu/packages/python-xyz.scm

index 479466c..97da097 100644 (file)
@@ -17073,3 +17073,24 @@ scripts to load entry points more quickly.")
 functional combinators.  Parser combinators are just higher-order functions
 that take parsers as their arguments and return them as result values.")
     (license license:expat)))
+
+(define-public python-speg
+  (package
+    (name "python-speg")
+    (version "0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "speg" version ".zip"))
+       (sha256
+        (base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh"))))
+    (arguments
+     `(#:tests? #f))                    ;FIXME: tests fail, not sure why
+    (native-inputs
+     `(("unzip" ,unzip)))
+    (build-system python-build-system)
+    (home-page "https://github.com/avakar/speg")
+    (synopsis "PEG-based parser interpreter with memoization")
+    (description "This package is a PEG-based parser and interpreter with
+memoization.")
+    (license license:expat)))