From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add python-prompt-toolkit, python2-prompt-toolkit. Date: Wed, 22 Jun 2016 15:00:31 +0200 Message-ID: <20160622150031.00fa9615@scratchpost.org> 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]:57217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFhlu-00058j-7d for guix-devel@gnu.org; Wed, 22 Jun 2016 09:00:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFhlo-0000vm-A6 for guix-devel@gnu.org; Wed, 22 Jun 2016 09:00:45 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:38735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFhlo-0000vK-2Z for guix-devel@gnu.org; Wed, 22 Jun 2016 09:00:40 -0400 Received: from localhost (77.116.202.32.wireless.dyn.drei.com [77.116.202.32]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 8A4241CA045B for ; Wed, 22 Jun 2016 15:00:33 +0200 (CEST) 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 (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)))))