From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 1/7] gnu: Add python-boolexp. Date: Tue, 31 Jan 2017 12:53:33 +0000 Message-ID: <20170131125339.18500-2-contact.ng0@cryptolab.net> References: <20160925173931.GD9499@jasmine> <20170131125339.18500-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYXv9-0006On-Gz for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYXv8-0002hT-BM for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:27 -0500 Received: from aibo.runbox.com ([91.220.196.211]:47796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYXv8-0002hL-4E for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:26 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cYXv6-0002oK-Mf for guix-devel@gnu.org; Tue, 31 Jan 2017 13:52:24 +0100 In-Reply-To: <20170131125339.18500-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * 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 9e33412d8..58222be4d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -526,6 +526,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.11.0