aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym+a@scratchpost.org>2016-06-29 09:40:40 +0200
committerLeo Famulari <leo@famulari.name>2016-06-29 22:31:05 -0400
commitf4155188c3d35fac67967e2bf64467183cd970f4 (patch)
treefeb18471a4a965ff2916fae8444a108a392941b5 /gnu/packages
parente4875826d8b31ef8529ac2b7ec65db35d0423a46 (diff)
downloadgnu-guix-f4155188c3d35fac67967e2bf64467183cd970f4.tar
gnu-guix-f4155188c3d35fac67967e2bf64467183cd970f4.tar.gz
gnu: Add python-prompt-toolkit.
* gnu/packages/python.scm (python-prompt-toolkit, python2-prompt-toolkit): New variables. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2134c1034a..684c372e82 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9664,3 +9664,40 @@ implementation for Python.")
(propagated-inputs
`(("python2-ipaddress" ,python2-ipaddress)
,@(package-propagated-inputs base))))))
+
+(define-public python-prompt-toolkit
+ (package
+ (name "python-prompt-toolkit")
+ (version "1.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/"
+ "8d/de/412f23919929c01e6b55183e124623f705e4b91796d3d2dce2cb53d595ad/"
+ "prompt_toolkit-" version ".tar.gz"))
+ (sha256
+ (base32
+ "18lbmmkyjf509klc3217lq0x863pfzix779zx5kp9lms1iph4pl0"))))
+ (build-system python-build-system)
+ (inputs `(("python-wcwidth" ,python-wcwidth)
+ ("python-pygments" ,python-pygments)))
+ (native-inputs `(("python-six" ,python-six)))
+ (home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
+ (synopsis "Library for building command line interfaces in Python")
+ (description
+ "Prompt-Toolkit is a library for building interactive command line
+interfaces in Python. It's like GNU Readline but it also features syntax
+highlighting while typing, out-of-the-box multi-line input editing, advanced
+code completion, incremental search, support for Chinese double-width
+characters, mouse support, and auto suggestions.")
+ (license bsd-3)
+ (properties `((python2-variant . ,(delay python2-prompt-toolkit))))))
+
+(define-public python2-prompt-toolkit
+ (let ((base (package-with-python2 (strip-python2-variant python-prompt-toolkit))))
+ (package
+ (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))