From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF253-0003bf-30 for guix-patches@gnu.org; Tue, 23 Oct 2018 15:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF24z-0003uA-Us for guix-patches@gnu.org; Tue, 23 Oct 2018 15:11:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gF24z-0003u2-Qm for guix-patches@gnu.org; Tue, 23 Oct 2018 15:11:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gF24z-0004YF-LP for guix-patches@gnu.org; Tue, 23 Oct 2018 15:11:01 -0400 Subject: [bug#33131] [PATCH 1/4] gnu: Add python-readlike. References: <87r2gga3dq.fsf@tobias.gr> In-Reply-To: <87r2gga3dq.fsf@tobias.gr> Resent-Message-ID: From: Tobias Geerinckx-Rice Date: Tue, 23 Oct 2018 21:10:13 +0200 Message-Id: <20181023191016.12096-1-me@tobias.gr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33131@debbugs.gnu.org * gnu/packages/python.scm (python-readlike, python2-readlike): New public variables. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dee7d9a06..d9f3ebfc5 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)) -- 2.18.0