all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: contact.ng0@cryptolab.net
To: guix-devel@gnu.org
Cc: ng0 <ng0@we.make.ritual.n0.is>
Subject: [PATCH 1/7] gnu: Add python-boolexp.
Date: Tue, 31 Jan 2017 12:53:33 +0000	[thread overview]
Message-ID: <20170131125339.18500-2-contact.ng0@cryptolab.net> (raw)
In-Reply-To: <20170131125339.18500-1-contact.ng0@cryptolab.net>

From: ng0 <ng0@we.make.ritual.n0.is>

* 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

  reply	other threads:[~2017-01-31 12:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-21 12:13 Addition to tinycm patch-series (corrects patch 8) ng0
2016-09-25 17:39 ` Leo Famulari
2017-01-31 12:53   ` tinycm contact.ng0
2017-01-31 12:53     ` contact.ng0 [this message]
2017-01-31 12:53     ` [PATCH 2/7] gnu: Add python-colorlog contact.ng0
2017-01-31 12:53     ` [PATCH 3/7] gnu: Add python2-ruamel.ordereddict contact.ng0
2017-02-02  4:53       ` Maxim Cournoyer
2017-02-02 10:13         ` ng0
2017-02-02 10:46         ` Hartmut Goebel
2017-02-02 14:03         ` Tobias Geerinckx-Rice
2017-02-05  9:11           ` Maxim Cournoyer
2017-01-31 12:53     ` [PATCH 4/7] gnu: Add python-distro contact.ng0
2017-01-31 12:53     ` [PATCH 5/7] gnu: Add python-typing contact.ng0
2017-01-31 12:53     ` [PATCH 6/7] gnu: Add python-ruamel.yaml contact.ng0
2017-02-02  4:42       ` Maxim Cournoyer
2017-02-02 10:49         ` Hartmut Goebel
2017-01-31 12:53     ` [PATCH 7/7] gnu: Add tinycm contact.ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170131125339.18500-2-contact.ng0@cryptolab.net \
    --to=contact.ng0@cryptolab.net \
    --cc=guix-devel@gnu.org \
    --cc=ng0@we.make.ritual.n0.is \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.