unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-prompt-toolkit, python2-prompt-toolkit.
@ 2016-06-22 13:00 Danny Milosavljevic
  2016-06-25 18:17 ` Leo Famulari
  0 siblings, 1 reply; 7+ messages in thread
From: Danny Milosavljevic @ 2016-06-22 13:00 UTC (permalink / raw)
  To: guix-devel


* gnu/packages/python.scm (python-prompt-toolkit, python2-prompt-toolkit): New variables.
---
 gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4f18680..d1bb862 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9216,3 +9216,39 @@ specified in POSIX.1-2001 and POSIX.1-2008.")
     (inherit (package-with-python2
               (strip-python2-variant python-wcwidth)))
     (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
+
+(define-public python-prompt-toolkit
+ (package
+  (name "python-prompt-toolkit")
+  (version "1.0.0")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (string-append
+             "https://pypi.python.org/packages/"
+             "0b/2c/ab26db81e5b9c2f179a2e9d797f2ce0d11f7cc3308830831de0daad8629e/"
+             "prompt_toolkit-" version ".tar.gz"))
+      (sha256
+        (base32
+          "192fyzs0hyq0k7wxxl00jwl334l5hwwmdflhvjqqrlj0dsgfs22i"))))
+  (build-system python-build-system)
+  (inputs `(("python-six" ,python-six) ; for the tests
+            ("python-wcwidth" ,python-wcwidth)
+            ("python-pygments" ,python-pygments)))
+  (home-page
+    "https://github.com/jonathanslenders/python-prompt-toolkit")
+  (synopsis
+    "Library for building powerful interactive command lines in Python")
+  (description
+    "Prompt-Toolkit is a library for building powerful interactive command lines in Python. 
+It's like GNU Readline but also features syntax highlighting while typing,
+out-of-the-box multi-line input editing, advanced code completion, incremental search,
+it works properly with Chinese double-width characters, it has mouse support,
+auto suggestions etc.")
+  (license bsd-2))) ; FIXME which BSD
+
+(define-public python2-prompt-toolkit
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-prompt-toolkit)))
+    (native-inputs `(("python2-setuptools" ,python2-setuptools)))))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-06  8:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-22 13:00 [PATCH] gnu: Add python-prompt-toolkit, python2-prompt-toolkit Danny Milosavljevic
2016-06-25 18:17 ` Leo Famulari
2016-06-28  8:19   ` [PATCH v2] " Danny Milosavljevic
2016-06-29  7:40     ` [PATCH v3] " Danny Milosavljevic
2016-06-29  9:30       ` Danny Milosavljevic
2016-06-30  2:23         ` Leo Famulari
2016-07-06  8:52           ` Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).