aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2018-10-22 17:58:02 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2018-10-24 21:34:21 +0200
commitd4eb8a21a6bd5df9126290208d275c94d65c95e3 (patch)
treee257e61419bf313dd25cd2819c9340bf06b7967a /gnu/packages/python.scm
parent5b59c77585b41896eda1a40b24b1c3c4a536f080 (diff)
downloadpatches-d4eb8a21a6bd5df9126290208d275c94d65c95e3.tar
patches-d4eb8a21a6bd5df9126290208d275c94d65c95e3.tar.gz
gnu: Add python-readlike.
* gnu/packages/python.scm (python-readlike, python2-readlike): New public variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dee7d9a06a..d9f3ebfc55 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14524,3 +14524,30 @@ can be retrieved in constant time. Some of the terminology is inspired by
LISP. It is possible to create an improper list by creating a @code{Pair}
with a non-list @code{cdr}.")
(license license:gpl3+)))
+
+(define-public python-readlike
+ (package
+ (name "python-readlike")
+ (version "0.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "readlike" version))
+ (sha256
+ (base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/jangler/readlike")
+ (synopsis "GNU Readline-like line editing module")
+ (description
+ "This Python module provides line editing functions similar to the default
+Emacs-style ones of GNU Readline. Unlike the Python standard library's
+@code{readline} package, this one allows access to those capabilties in settings
+outside of a standard command-line interface. It is especially well-suited to
+interfacing with Urwid, due to a shared syntax for describing key inputs.
+
+Currently, all stateless Readline commands are implemented. Yanking and history
+are not supported.")
+ (license license:expat)))
+
+(define-public python2-readlike
+ (package-with-python2 python-readlike))