From 8930f01a7953b7881fc505b8b4ed2084f37a86b0 Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 20 Sep 2016 11:15:48 +0000 Subject: [PATCH 1/8] gnu: Add python-boolexp. * gnu/packages/python.scm (python-boolexp): New variable. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a186557..995332e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -499,6 +499,35 @@ John the Ripper).") (define-public python2-py-bcrypt (package-with-python2 python-py-bcrypt)) +(define-public python-boolexp + (package + (name "python-boolexp") + (version "0.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "boolexp" version)) + (sha256 + (base32 + "01rgzy6abpa4pscmcw4bmr5fl5ij4knff2y0ah73sg8lazhf1sdm")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) + (inputs + `(("python-pyparsing" ,python-pyparsing))) + ;; ("python2-pyandoc" ,python2-pyandoc) ; A pandoc wrapper, TODO: package it. + (home-page "https://bitbucket.org/pfacka/boolexp") + (synopsis "Safe boolean expression evaluator") + (description + "Boolexp provides \"safe\" evaluation of boolean expressions for use cases +where eval might be dangerous. Boolexp expressions are context-free and mimic +Python sytax. Only basic math opearations and data structures are provided.") + (license license:expat))) + +(define-public python2-boolexp + (let ((boolexp (package-with-python2 python-boolexp))) + (package (inherit boolexp) + (native-inputs + `(("python2-setuptools" ,python2-setuptools)))))) (define-public python-paramiko (package -- 2.10.0