From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 4/4] gnu: Add python-bpython. Date: Sat, 31 Dec 2016 15:02:02 +0100 Message-ID: <1483192922-21411-4-git-send-email-h.goebel@crazy-compilers.com> References: <1483192922-21411-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNKEf-00072I-3x for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNKEc-0004OU-Sc for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:13 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:57252) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cNKEc-0004OP-Lw for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:10 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3trQ4x4xwzz3hjMr for ; Sat, 31 Dec 2016 15:02:09 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3trQ4x4sSVzvkXl for ; Sat, 31 Dec 2016 15:02:09 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id nUWaTCpiNgYV for ; Sat, 31 Dec 2016 15:02:08 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-73-193.dynamic.mnet-online.de [93.104.73.193]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sat, 31 Dec 2016 15:02:08 +0100 (CET) Received: from thisbe.goebel-consult.de.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9CC4E60AC1 for ; Sat, 31 Dec 2016 15:02:02 +0100 (CET) In-Reply-To: <1483192922-21411-1-git-send-email-h.goebel@crazy-compilers.com> 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-bpython, python2-bpython): New variables. --- gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 75f5fba..af6ab2f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12387,3 +12387,44 @@ fullscreen terminal rendering, and keyboard input event reporting. ") (define-public python2-curtsies-0.1 (package-with-python2 python-curtsies-0.1)) + +(define-public python-bpython + (package + (name "bpython") + (version "0.16") + (source + (origin + (method url-fetch) + (uri (pypi-uri "bpython" version)) + (sha256 + (base32 + "0pv5dy84idh0l8kxy01ipkpxrf9kcfb7h5q16gqxg2mx0bvdvwzs")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system python-build-system) + (propagated-inputs + `(("python-pygments" ,python-pygments) + ("python-requests", python-requests) + ("python-babel" ,python-babel) ;; optional, for internationalization + ("python-curtsies" ,python-curtsies-0.1) ;; >= 0.1.18,< 0.2 + ("python-greenlet" ,python-greenlet) + ("python-urwid" ,python-urwid))) ;; for bpython-urwid only + (native-inputs + `(("python-sphinx" ,python-sphinx) + ("python-mock" ,python-mock))) + (home-page "https://bpython-interpreter.org/") + (synopsis "Fancy interface to the Python interpreter") + (description "bpython's main features are +@enumerate +@item in-line syntax highlighting, +@item readline-like autocomplete with suggestions displayed as you type, +@item expected parameter list for any Python function, +@item \"rewind\" function to pop the last line of code from memory and + re-evaluate, +@item send the code you've entered off to a pastebin, +@item save the code you've entered to a file, and +@item auto-indentation. +@end enumerate") + (license license:expat))) + +(define-public python2-bpython + (package-with-python2 python-bpython)) -- 2.7.4