From patchwork Tue Oct 23 19:10:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 10 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 352ED1674F; Tue, 23 Oct 2018 20:12:35 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id E876F1674C for ; Tue, 23 Oct 2018 20:12:34 +0100 (BST) Received: from localhost ([::1]:43862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF26U-0004R1-6u for patchwork@mira.cbaines.net; Tue, 23 Oct 2018 15:12:34 -0400 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 X-Loop: help-debbugs@gnu.org Subject: [bug#33131] [PATCH 1/4] gnu: Add python-readlike. References: <87r2gga3dq.fsf@tobias.gr> In-Reply-To: <87r2gga3dq.fsf@tobias.gr> Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Oct 2018 19:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33131 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33131@debbugs.gnu.org Received: via spool by 33131-submit@debbugs.gnu.org id=B33131.154032182417410 (code B ref 33131); Tue, 23 Oct 2018 19:11:01 +0000 Received: (at 33131) by debbugs.gnu.org; 23 Oct 2018 19:10:24 +0000 Received: from localhost ([127.0.0.1]:38515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF24O-0004Wj-0o for submit@debbugs.gnu.org; Tue, 23 Oct 2018 15:10:24 -0400 Received: from tobias.gr ([80.241.217.52]:49582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF24L-0004WU-TH for 33131@debbugs.gnu.org; Tue, 23 Oct 2018 15:10:22 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 98670bf6 for <33131@debbugs.gnu.org>; Tue, 23 Oct 2018 19:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=JC94MfIH0ElV8C2p0ZYSUrbk0o4V9pYsrS+f 6hsys+E=; b=LglWTbIUedKssujQoyGeBGkN28N8NzGUhqoapdbADpsLadTjtbMT NhapD2wnBOUBNuqaU16l+J8FOqPQN8wbpSt7+tCkKrnSBPasEfpanCW5WxZh5uWe 5tqnFOlU6fxt1If7X7tgLvKAM/UWJs27RUR+FKfFt51/3ff5/sq5c0Ri8hjamrSW lU+QUVp71oQEKvs75iQdu80FmbJWn2VlMNckqiu+zlaKvZwVMCI/e1z/H6Rsaeeh 8fFbXjU+CaZr7RopJNOKteFb1+TPFrotnJqLfYZ3ae+f38DjRoVqgRcFpLgXxVr2 TGXZr4ZGrdKLBg5Svm2SYlo5yn7h+koknA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 11165fff (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <33131@debbugs.gnu.org>; Tue, 23 Oct 2018 19:10:18 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Tue, 23 Oct 2018 21:10:13 +0200 Message-Id: <20181023191016.12096-1-me@tobias.gr> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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))