From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2] gnu: Add ptpython, ptpython-2. Date: Wed, 20 Jul 2016 11:33:32 +0200 Message-ID: <20160720113332.00774d42@scratchpost.org> References: <20160720093002.2e4552fa@scratchpost.org> <107c3b11-0d60-46f8-5a02-fd75eb2d38fc@goebel-consult.de> 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]:60139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPnsr-00070w-CN for guix-devel@gnu.org; Wed, 20 Jul 2016 05:33:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPnsm-0007Vy-EC for guix-devel@gnu.org; Wed, 20 Jul 2016 05:33:40 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:52127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPnsm-0007Vg-7c for guix-devel@gnu.org; Wed, 20 Jul 2016 05:33:36 -0400 In-Reply-To: <107c3b11-0d60-46f8-5a02-fd75eb2d38fc@goebel-consult.de> 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 Cc: Hartmut Goebel * gnu/packages/python.scm (ptpython, ptpython-2): New variables. Signed-off-by: Danny Milosavljevic --- gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b9d61dd..626ad51 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9750,3 +9750,38 @@ characters, mouse support, and auto suggestions.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public ptpython + (package + (name "ptpython") + (version "0.34") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ptpython" version)) + (sha256 + (base32 + "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13")))) + (build-system python-build-system) + (inputs + `(("python-docopt" ,python-docopt) + ("python-jedi" ,python-jedi) + ("python-prompt-toolkit" ,python-prompt-toolkit) + ("python-pygments" ,python-pygments) + ("python-setuptools" ,python-setuptools))) + (home-page + "https://github.com/jonathanslenders/ptpython") + (synopsis + "Python Read-Eval-Print-Loop with nice IDE-like features") + (description + "ptpython is a Python Read-Eval-Print-Loop with IDE-like features. +It supports syntax highlighting, multiline editing, autocompletion, mouse, +color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters etc.") + (license bsd-3) + (properties `((python2-variant . ,(delay ptpython-2)))))) + +(define-public ptpython-2 + (let ((base (package-with-python2 (strip-python2-variant ptpython)))) + (package + (inherit base) + (name "ptpython-2"))))