From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2] gnu: Add python-prompt-toolkit, python2-prompt-toolkit. Date: Tue, 28 Jun 2016 10:19:45 +0200 Message-ID: <20160628101945.4225c7a5@scratchpost.org> References: <20160625181732.GA23844@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHoFT-00073p-Ce for guix-devel@gnu.org; Tue, 28 Jun 2016 04:20:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHoFN-0001C5-Ap for guix-devel@gnu.org; Tue, 28 Jun 2016 04:19:58 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:35538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHoFN-0001BY-3U for guix-devel@gnu.org; Tue, 28 Jun 2016 04:19:53 -0400 Received: from localhost (178.112.93.142.wireless.dyn.drei.com [178.112.93.142]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 7A0F71CA1A97 for ; Tue, 28 Jun 2016 10:19:47 +0200 (CEST) In-Reply-To: <20160625181732.GA23844@jasmine> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5322be5..6103606 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9664,3 +9664,40 @@ implementation for Python.") `(("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 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-3))) + +(define-public python2-prompt-toolkit + (let ((base (package-with-python2 (strip-python2-variant python-prompt-toolkit)))) + (package + (inherit base) + (propagated-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-propagated-inputs base))))))