From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 03 17:22:57 2018 Received: (at submit) by debbugs.gnu.org; 3 Feb 2018 22:22:57 +0000 Received: from localhost ([127.0.0.1]:56054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6Cx-0004j1-HS for submit@debbugs.gnu.org; Sat, 03 Feb 2018 17:22:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6Cw-0004ip-1k for submit@debbugs.gnu.org; Sat, 03 Feb 2018 17:22:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ei6Cp-0003BO-Oy for submit@debbugs.gnu.org; Sat, 03 Feb 2018 17:22:44 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ei6Cp-0003BK-LS for submit@debbugs.gnu.org; Sat, 03 Feb 2018 17:22:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ei6Co-0007Yj-Bg for guix-patches@gnu.org; Sat, 03 Feb 2018 17:22:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ei6Cl-0003Ac-1E for guix-patches@gnu.org; Sat, 03 Feb 2018 17:22:42 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:46416) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ei6Ck-0003AN-OH for guix-patches@gnu.org; Sat, 03 Feb 2018 17:22:38 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zYpJD4mD3z1qsVV for ; Sat, 3 Feb 2018 23:22:36 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zYpJD4g0Tz1sQwt for ; Sat, 3 Feb 2018 23:22:36 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id NFlZWH-_Ehus for ; Sat, 3 Feb 2018 23:22:35 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-168-48.dynamic.mnet-online.de [93.104.168.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sat, 3 Feb 2018 23:22:35 +0100 (CET) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id 0FAFF60652 for ; Sat, 3 Feb 2018 23:22:34 +0100 (CET) From: Hartmut Goebel To: guix-patches@gnu.org Subject: [PATCH 1/4] gnu: Add python-pyte. Date: Sat, 3 Feb 2018 23:22:33 +0100 Message-Id: <20180203222233.13657-1-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/python.scm (python-pyte, python2-pyte): New variables. --- gnu/packages/python.scm | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9483ad6b1..c5f8ee43f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -19,7 +19,7 @@ ;;; Copyright =C2=A9 2015, 2016 Chris Marusich ;;; Copyright =C2=A9 2016 Danny Milosavljevic ;;; Copyright =C2=A9 2016 Lukas Gradl -;;; Copyright =C2=A9 2016 Hartmut Goebel +;;; Copyright =C2=A9 2016, 2018 Hartmut Goebel ;;; Copyright =C2=A9 2016 Daniel Pimentel ;;; Copyright =C2=A9 2016 Sou Bunnbu ;;; Copyright =C2=A9 2016, 2017 Troy Sankey @@ -12417,3 +12417,43 @@ style guide, even if the original code didn't vi= olate the style guide.") =20 (define-public python2-yapf (package-with-python2 python-yapf)) + +(define-public python-pyte + (package + (name "python-pyte") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyte" version)) + (sha256 + (base32 + "1an54hvyjm8gncx8cgabz9mkpgjkdb0bkyjlkh7g7f94nr3wnfl7")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-failing-test + ;; TODO: Reenable when the `captured` files required by this = test + ;; are included in the archive. + (lambda _ + (delete-file "tests/test_input_output.py")))))) + (propagated-inputs + `(("python-wcwidth", python-wcwidth))) + (native-inputs + `(("python-pytest-runner" ,python-pytest-runner) + ("python-pytest" ,python-pytest))) + (home-page "https://pyte.readthedocs.io/") + (synopsis "Simple VTXXX-compatible terminal emulator") + (description "@code{pyte} is an in-memory VTxxx-compatible terminal +emulator. @var{VTxxx} stands for a series of video terminals, developed= by +DEC between 1970 and 1995. The first and probably most famous one was t= he +VT100 terminal, which is now a de-facto standard for all virtual termina= l +emulators. + +pyte is as a fork of vt102, which was an incomplete pure Python implemen= tation +of VT100 terminal.") + (license license:lgpl3))) + +(define-public python2-pyte + (package-with-python2 python-pyte)) --=20 2.13.6 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 03 17:27:39 2018 Received: (at 30341) by debbugs.gnu.org; 3 Feb 2018 22:27:39 +0000 Received: from localhost ([127.0.0.1]:56059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6Hb-0004qH-LH for submit@debbugs.gnu.org; Sat, 03 Feb 2018 17:27:39 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:39845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6Ha-0004q8-Nd for 30341@debbugs.gnu.org; Sat, 03 Feb 2018 17:27:39 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zYpQ15Bs2z1qsVV for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:37 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zYpQ149hhz1sQwt for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:37 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id vbekEfLabD6H for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:36 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-168-48.dynamic.mnet-online.de [93.104.168.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:36 +0100 (CET) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id 32F8660652 for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:35 +0100 (CET) From: Hartmut Goebel To: 30341@debbugs.gnu.org Subject: [PATCH 2/4] gnu: Add python-blessings. Date: Sat, 3 Feb 2018 23:27:33 +0100 Message-Id: <20180203222735.14042-1-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * gnu/packages/python.scm (python-blessings, python2-blessings): New variables. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c5f8ee43f..61739ceb6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12457,3 +12457,34 @@ of VT100 terminal.") (define-public python2-pyte (package-with-python2 python-pyte)) + +(define-public python-blessings + (package + (name "python-blessings") + (version "1.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "blessings" version)) + (sha256 + (base32 + "1smngy65p8mi62lgm04icasx22v976szhs2aq95y2ljmi1srb4bl")))) + (build-system python-build-system) + (arguments + ;; TODO: For py3, 2to2 is used to convert the code, but test-suite fails + `(#:tests? #f)) + (native-inputs + `(("python-nose" ,python-nose))) + (home-page "https://pypi.python.org/pypi/blessings") + (synopsis "Simple but powerful module to manage terminal color, styling, +and positioning") + (description "Blessings is a pythonic API to manipulate terminal color, +styling, and positioning. It provides similar features to curses but avoids +some of curses’s limitations: it does not require clearing the whole screen +for little changes, provides a scroll-back buffer after the program exits, and +avoids styling altogether when the output is redirected to something other +than a terminal.") + (license license:expat))) + +(define-public python2-blessings + (package-with-python2 python-blessings)) -- 2.13.6 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 03 17:27:42 2018 Received: (at 30341) by debbugs.gnu.org; 3 Feb 2018 22:27:42 +0000 Received: from localhost ([127.0.0.1]:56062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6Hd-0004qX-Sj for submit@debbugs.gnu.org; Sat, 03 Feb 2018 17:27:42 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:42507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6Hc-0004qO-8j for 30341@debbugs.gnu.org; Sat, 03 Feb 2018 17:27:40 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zYpQ35c1Sz1qsVV for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:39 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zYpQ35VpLz1sQwt for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:39 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id AmdBYfbhclUf for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:38 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-168-48.dynamic.mnet-online.de [93.104.168.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:38 +0100 (CET) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id 4E16560B27 for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:35 +0100 (CET) From: Hartmut Goebel To: 30341@debbugs.gnu.org Subject: [PATCH 3/4] gnu: Add python-curtsies. Date: Sat, 3 Feb 2018 23:27:34 +0100 Message-Id: <20180203222735.14042-2-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180203222735.14042-1-h.goebel@crazy-compilers.com> References: <20180203222735.14042-1-h.goebel@crazy-compilers.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * gnu/packages/python.scm (python-curtsies, python2-curtsies): 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 61739ceb6..49b698f3d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12488,3 +12488,39 @@ than a terminal.") (define-public python2-blessings (package-with-python2 python-blessings)) + +(define-public python-curtsies + (package + (name "python-curtsies") + (version "0.2.11") + (source + (origin + (method url-fetch) + (uri (pypi-uri "curtsies" version)) + (sha256 + (base32 + "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "nosetests" "-v"))))))) + (propagated-inputs + `(("python-blessings" ,python-blessings) + ("python-wcwidth", python-wcwidth))) + (native-inputs + `(("python-mock" ,python-mock) + ("python-pyte" ,python-pyte) + ("python-nose" ,python-nose))) + (home-page "https://github.com/thomasballinger/curtsies") + (synopsis "Library for curses-like terminal interaction with colored +strings") + (description "Curtsies is a Python library for interacting with the +terminal. It features string-like objects which carry formatting information, +per-line fullscreen terminal rendering, and keyboard input event reporting.") + (license license:expat))) + +(define-public python2-curtsies + (package-with-python2 python-curtsies)) -- 2.13.6 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 03 17:27:44 2018 Received: (at 30341) by debbugs.gnu.org; 3 Feb 2018 22:27:44 +0000 Received: from localhost ([127.0.0.1]:56065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6Hg-0004ql-4Q for submit@debbugs.gnu.org; Sat, 03 Feb 2018 17:27:44 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:59543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei6He-0004qW-2l for 30341@debbugs.gnu.org; Sat, 03 Feb 2018 17:27:42 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zYpQ54MqVz1qsVV for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:41 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zYpQ54GsKz1sQwt for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:41 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id NxvDky3N-q4A for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:40 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-168-48.dynamic.mnet-online.de [93.104.168.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:40 +0100 (CET) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id 64AF860B42 for <30341@debbugs.gnu.org>; Sat, 3 Feb 2018 23:27:35 +0100 (CET) From: Hartmut Goebel To: 30341@debbugs.gnu.org Subject: [PATCH 4/4] gnu: Add bpython. Date: Sat, 3 Feb 2018 23:27:35 +0100 Message-Id: <20180203222735.14042-3-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180203222735.14042-1-h.goebel@crazy-compilers.com> References: <20180203222735.14042-1-h.goebel@crazy-compilers.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * gnu/packages/python.scm (bpython, bpython2): New variables. --- gnu/packages/python.scm | 84 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 49b698f3d..6d2eb3dab 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12524,3 +12524,87 @@ per-line fullscreen terminal rendering, and keyboard input event reporting.") (define-public python2-curtsies (package-with-python2 python-curtsies)) + +(define-public bpython + (package + (name "bpython") + (version "0.17") + (source + (origin + (method url-fetch) + (uri (pypi-uri "bpython" version)) + (sha256 + (base32 + "1mbah208jhd7bsfaa17fwpi55f7fvif0ghjwgrjmpmx8w1vqab9l")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-failing-test ;; FIXME + (lambda _ + (delete-file "bpython/test/test_args.py"))) + (add-after 'wrap 'add-aliases + ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc. + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each + (lambda (old new) + (symlink old ;; (string-append out "/bin/" old) + (string-append out "/bin/" new))) + '("bpython" "bpython-curses" "bpython-urwid" "bpdb") + '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))))))) + (propagated-inputs + `(("python-pygments" ,python-pygments) + ("python-requests", python-requests) + ("python-babel" ,python-babel) ;; optional, for internationalization + ("python-curtsies" ,python-curtsies) ;; >= 0.1.18 + ("python-greenlet" ,python-greenlet) + ("python-urwid" ,python-urwid) ;; for bpython-urwid only + ("python-six" ,python-six))) + (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 is a fancy interface to the Python +interpreter. 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 bpython2 + (let ((base (package-with-python2 + (strip-python2-variant bpython)))) + (package (inherit base) + (name "bpython2") + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-failing-test ;; FIXME + (lambda _ + (delete-file "bpython/test/test_args.py") + (substitute* "bpython/test/test_curtsies_repl.py" + (("^(\\s*def )(test_get_last_word_with_prev_line\\W)" _ a b) + (string-append a "xxx_off_" b)) + (("^(\\s*def )(test_complex\\W)" _ a b) + (string-append a "xxx_off_" b))))) + (add-before 'build 'rename-scripts + ;; rename the scripts to bypthon2, bpdb2, etc. + (lambda _ + (substitute* "setup.py" + (("^(\\s+'bpdb)(\\s+=.*',?)\\s*?$" _ name rest) + (string-append name "2" rest "\n")) + (("^(\\s+'bpython)(-\\S+)?(\\s+=.*',?)\\s*?$" _ name sub rest) + (string-append name "2" (or sub "") rest "\n"))) + #t)))))))) -- 2.13.6 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 06:58:44 2018 Received: (at 30341) by debbugs.gnu.org; 15 Feb 2018 11:58:44 +0000 Received: from localhost ([127.0.0.1]:43699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIBY-0000uy-51 for submit@debbugs.gnu.org; Thu, 15 Feb 2018 06:58:44 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:50451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIBW-0000uq-Sz for 30341@debbugs.gnu.org; Thu, 15 Feb 2018 06:58:43 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6BE8F20D2D; Thu, 15 Feb 2018 06:58:42 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 15 Feb 2018 06:58:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=kZtKJYtdw7D+RGVAFa6OPSqYAoO3yVd7qGENF7ffbOE=; b=bHg6fIg9 97nDFupqjmJIe8JX0cuBw72nMrLT1wI31r2QzUVwhv2/U3nwKLU9XMDYv/1tDIHE lkQZdIb6e+h0zQGD+aBFUrPO0uZRDV8luaWMOZzeP0AxQr7j+TwtNSwCkuBqU3ok eRs3GjvvHUK2mk/LfRcARwDrXUYNmH15jQWVPq6Zh3fHd7cJsekPYIDp41jc5xtn 41ChK9NXFbArJHIlDvMRbjH3wYu19N+wU7KHcg/TwFiQil0PGm3d/2ar06fVqmsz DvH2w0mykPtyy4MYDCLJSZqs+ne2l8GGNthJmSdgL275cEaDb6W/uUuX8ZtGt6JB J4gPmnEKx+FhBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=kZtKJYtdw7D+RGVAFa6OPSqYAoO3y Vd7qGENF7ffbOE=; b=OruGPtoE1TSOArQ084XE0yTRE0IqRxR3MGbUJw1WqmKw6 +r01LitDayNcwVK3S5MURhcq8THTkFXDOtUbFzZM8qNmJzQ4smBnn3vPnoBxaNl8 DAJxgtlN+NXdTq3D0o+1+mw2dKRm8mT5tV9OJMgk0rq9iHTYXwghQdd2cNgDiSJI TTZwL14R6noJekreMq8gZtgPehG1qK1Z1rukpRAxVWWmDKVuMSmOAEN/fzQ/hNHq iMt6ONxl9qIHVPaZihqc0T0ERi9IHIMKSyLtP5T5dq/FWZocBXHZ/JfDxk/EDDGH MoTltNnk0OnCr3zY1cXWXmTt7vxjelaPSJaLNrM1A== X-ME-Sender: Received: from localhost (ip-86-49-250-168.net.upcbroadband.cz [86.49.250.168]) by mail.messagingengine.com (Postfix) with ESMTPA id DCCB07E2E5; Thu, 15 Feb 2018 06:58:41 -0500 (EST) From: Marius Bakke To: Hartmut Goebel , 30341@debbugs.gnu.org Subject: Re: [bug#30341] [PATCH 1/4] gnu: Add python-pyte. In-Reply-To: <20180203222233.13657-1-h.goebel@crazy-compilers.com> References: <20180203222233.13657-1-h.goebel@crazy-compilers.com> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Thu, 15 Feb 2018 12:58:40 +0100 Message-ID: <87k1vewjkf.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hartmut Goebel writes: > * gnu/packages/python.scm (python-pyte, python2-pyte): New variables. Perhaps we can add this to "terminals.scm" to try and prevent python.scm from growing out of control again. [...] > +(define-public python-pyte > + (package > + (name "python-pyte") > + (version "0.7.0") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "pyte" version)) > + (sha256 > + (base32 > + "1an54hvyjm8gncx8cgabz9mkpgjkdb0bkyjlkh7g7f94nr3wnfl7")))) > + (build-system python-build-system) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'remove-failing-test > + ;; TODO: Reenable when the `captured` files required by this = test > + ;; are included in the archive. > + (lambda _ > + (delete-file "tests/test_input_output.py")))))) (delete-file ...) has an unspecified return value, so add a #t here. > + (propagated-inputs > + `(("python-wcwidth", python-wcwidth))) > + (native-inputs > + `(("python-pytest-runner" ,python-pytest-runner) > + ("python-pytest" ,python-pytest))) > + (home-page "https://pyte.readthedocs.io/") > + (synopsis "Simple VTXXX-compatible terminal emulator") > + (description "@code{pyte} is an in-memory VTxxx-compatible terminal > +emulator. @var{VTxxx} stands for a series of video terminals, developed= by > +DEC between 1970 and 1995. The first and probably most famous one was t= he > +VT100 terminal, which is now a de-facto standard for all virtual terminal > +emulators. > + > +pyte is as a fork of vt102, which was an incomplete pure Python implemen= tation s/is as/is/ ? > +of VT100 terminal.") > + (license license:lgpl3))) Since the source files don't specify which version, this is LGPL3+. Other than that LGTM. > + > +(define-public python2-pyte > + (package-with-python2 python-pyte)) > --=20 > 2.13.6 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqFdfAACgkQoqBt8qM6 VPr4eAgAjJBk4shBosSxfgY5ZnE8hkfucyoldeixcIZ/AIGf9Y9QDrWkG+lZ44xB fTMZTVFPcSllq1AsmF7QKSIPXZvvsTkxpcq+wDbAS4pqSA+ZNHGZpy4RHYWHl1E+ +FKT1bjKQjtserCaodk3lGLh3HmE8xA8cfhIwWtAYsmxVzGB8u1TCwtItand4PNQ m9+RsS8qw6tyxaSzeU5WhsrNU0YItrIeKR16XcNIxqhstpB+sfAU4jpInDgWVyiv pzXhmcBYnfK+j6gEl1IsxeBQL/Taf8HwEYJaFQPCADucumq8jgIdwwzog9ZZx3Ol +D9yRUxw+CZ2gwXw9+x966KRr5x/pQ== =4DDP -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 07:04:24 2018 Received: (at 30341) by debbugs.gnu.org; 15 Feb 2018 12:04:24 +0000 Received: from localhost ([127.0.0.1]:43713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIH2-00015A-BD for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:04:24 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41301) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIGz-000152-Pi for 30341@debbugs.gnu.org; Thu, 15 Feb 2018 07:04:22 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6311C2065E; Thu, 15 Feb 2018 07:04:21 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 15 Feb 2018 07:04:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=cZzAFQ9krjh99zj6SljcXmk2NvDwRi5p68Vt5ly29F4=; b=GdIY/9gv yxhsCDXFwdWnbO5dMsjX8B1ICfCzjuqabWqR3+e9/fp91zK8bAbzMeg4rLhBq7sl AgAMJGTH5y8Irb1GijZwMS+NXTXjuE4IXjcoF09sbdZUjFLdSscdCLZeGK6nQR32 u4kkgpbPUe8gyD13+Fl4JXDMuGVu6HUF/g3lmAvaxlchYFhxvqDK9VLoYFJ2u7vo 2+qepghu1VUqxJlyJPyyuVwIuk5DPed/qaxZNhH51CBsVEy7t34te9G2+Ihn9X7X iVm9I8rXpzXJQg3rf7aj+Bw51dkdn3zuvvMxAhWSFRSZreZZ6vXvC0moywJQXE32 jUQefrE7ebkFHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=cZzAFQ9krjh99zj6SljcXmk2NvDwR i5p68Vt5ly29F4=; b=JDHU3WTmoM1D+GF2ZMd5eoeuaNb+UG0TU7mEMw/UIhig5 y7ExsVdX4+8LSmdO2FOZzhjrNgHDGRCabwPAaLBKOcbYCqimDVPDG9no5IZ7w+ks NFqi/PlQfG26W/DVa2eQrGUZzccJrEZSD26s7XhFUNmeqHFtw5UGvbVIaVihSXGV Ooj2YnjtHDABj7DJmN9wGfgVpdFm6AYHa+JSlrVRB76zt50dSxhiZ16KyYeJ0sjo 0lPymGZA4PClORxl0Q7mYpFDAtMu9QDcFOV0W3y18uMBGMIdN+/BIOomNczdPGtE H99nHEYVnLVjd68rA5onM/0z33DH1NuLHMKjJTQsA== X-ME-Sender: Received: from localhost (ip-86-49-250-168.net.upcbroadband.cz [86.49.250.168]) by mail.messagingengine.com (Postfix) with ESMTPA id DD0617E542; Thu, 15 Feb 2018 07:04:20 -0500 (EST) From: Marius Bakke To: Hartmut Goebel , 30341@debbugs.gnu.org Subject: Re: [bug#30341] [PATCH 2/4] gnu: Add python-blessings. In-Reply-To: <20180203222735.14042-1-h.goebel@crazy-compilers.com> References: <20180203222233.13657-1-h.goebel@crazy-compilers.com> <20180203222735.14042-1-h.goebel@crazy-compilers.com> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Thu, 15 Feb 2018 13:04:19 +0100 Message-ID: <87h8qiwjb0.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hartmut Goebel writes: > * gnu/packages/python.scm (python-blessings, python2-blessings): New > variables. Perhaps this too can go in terminals.scm? > --- > gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index c5f8ee43f..61739ceb6 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -12457,3 +12457,34 @@ of VT100 terminal.") >=20=20 > (define-public python2-pyte > (package-with-python2 python-pyte)) > + > +(define-public python-blessings > + (package > + (name "python-blessings") > + (version "1.6.1") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "blessings" version)) > + (sha256 > + (base32 ^^^ Indentation is off. > + "1smngy65p8mi62lgm04icasx22v976szhs2aq95y2ljmi1srb4bl")))) > + (build-system python-build-system) > + (arguments > + ;; TODO: For py3, 2to2 is used to convert the code, but test-suite = fails > + `(#:tests? #f)) > + (native-inputs > + `(("python-nose" ,python-nose))) > + (home-page "https://pypi.python.org/pypi/blessings") I think is more home-page-y, but no strong opinion. > + (synopsis "Simple but powerful module to manage terminal color, styl= ing, > +and positioning") Maybe s/Simple but powerful/Python/ to keep the synopsis "dry". LGTM otherwise. > + (description "Blessings is a pythonic API to manipulate terminal col= or, > +styling, and positioning. It provides similar features to curses but av= oids > +some of curses=E2=80=99s limitations: it does not require clearing the w= hole screen > +for little changes, provides a scroll-back buffer after the program exit= s, and > +avoids styling altogether when the output is redirected to something oth= er > +than a terminal.") > + (license license:expat))) > + > +(define-public python2-blessings > + (package-with-python2 python-blessings)) > --=20 > 2.13.6 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqFd0MACgkQoqBt8qM6 VPrUmgf+MNGGCtZtwNya580uF7qQadzl06EIG8bd8cpEpTTXR2UzAq6224InStVP 0ByOQW3g2dsK3HA5h+Pu28/7TkBd0RFw9mtDFvncDGhW1Zdno9JQedgRQaVY7oCF 99nyX2Xk3ToUgVJclwP+221j+vHfJeymoGVyZmFPrh6MPIQxwJ1brkDtl57Mmp1Y qjqPgqjSOkKe9X/WU8QG6MA6mbbkAASqlEGd7404cocIlkyaBEejyF8Rquar6Fac PUCKjqlci0Iad7gODrJpHaAxOFao99VEaZ5xYmfQKmYxBYtv+lZ+Wpgav4f8HzqR Bnt56tYl4xTAa5TPR93CeSGnuO/FOA== =vAI1 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 07:07:40 2018 Received: (at 30341) by debbugs.gnu.org; 15 Feb 2018 12:07:40 +0000 Received: from localhost ([127.0.0.1]:43720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIKB-00019l-V4 for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:07:40 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:58703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIKA-00019e-Gv for 30341@debbugs.gnu.org; Thu, 15 Feb 2018 07:07:38 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7B04720E15; Thu, 15 Feb 2018 07:07:38 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 15 Feb 2018 07:07:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=JihwLxQb7wSb0CcFIyy0E4S0BG9UUuuI6szQGv98RZE=; b=WCAL8yKq U441rpEUCZHZ6FGNZneConVYf7pTipNkHIRBsfjkYmMx7C4peZSw2pGLxEHTxg+3 pVT6ef+5v7Lu14HRuSBkARBrS+vZtgMkPLji8/w3d9xSzUo35/5NhWzcUvQQZeJu LXywdnpDQgs061mtb10nPtXGOV3LHmVjOLR8M+jXK5gtGMCzkVOInSxZyKMRwRyf OxzQlezxnDNJxXRiZWsMTBJCdFHselmolE20v/JGSBPofUZMmhJS2CzUFrwxZtQQ 3j3IUf1PXxsXpSqMCSJPPD0nMB9M/Uxk9AYqUfugAktjDWu/bJzA+seDHXIr8WZs sCcyJqdtZbNu1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=JihwLxQb7wSb0CcFIyy0E4S0BG9UU uuI6szQGv98RZE=; b=DQRa9rnA8y2wXsQzZ8uqRyQ5j7UJFSUPMJAmaST0OlmTd 6j9UrwlhCdDr9rjIVJ7V3v+Q+okqDNojJP2NMGzM4FXOAv0oHXnHf5aOrMSP3kL+ 7FaE2TQ/5izhf92YMuOGik/otuKsrgHVPX0HeIs6kvmr9G54JXdNlTl1+8mp8vJa 6B3p1x/0A3jMFO6t4a8hIeOaaTLnHyEnyKqwPVFX1t0OCP7IchIh2Y0Qj+02itnq r5f1+MvQk5vSKdN2QCF+hECGUZg0Wmp9ngUf2EcI5MhN+E30XQvU6g8CzdOy7648 JV8iI5f0rgCfdTmx/q7iTGied5q3KJJDhes6SbwSw== X-ME-Sender: Received: from localhost (ip-86-49-250-168.net.upcbroadband.cz [86.49.250.168]) by mail.messagingengine.com (Postfix) with ESMTPA id E1B3D7E1DE; Thu, 15 Feb 2018 07:07:37 -0500 (EST) From: Marius Bakke To: Hartmut Goebel , 30341@debbugs.gnu.org Subject: Re: [bug#30341] [PATCH 3/4] gnu: Add python-curtsies. In-Reply-To: <20180203222735.14042-2-h.goebel@crazy-compilers.com> References: <20180203222735.14042-1-h.goebel@crazy-compilers.com> <20180203222735.14042-2-h.goebel@crazy-compilers.com> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Thu, 15 Feb 2018 13:07:36 +0100 Message-ID: <87eflmwj5j.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hartmut Goebel writes: > * gnu/packages/python.scm (python-curtsies, python2-curtsies): New variab= les. Also fit for terminals.scm, I think. > --- > gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index 61739ceb6..49b698f3d 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -12488,3 +12488,39 @@ than a terminal.") >=20=20 > (define-public python2-blessings > (package-with-python2 python-blessings)) > + > +(define-public python-curtsies > + (package > + (name "python-curtsies") > + (version "0.2.11") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "curtsies" version)) > + (sha256 > + (base32 Please run the indentation of all these through emacs :-) > + "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc")))) > + (build-system python-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda _ > + (zero? (system* "nosetests" "-v"))))))) Use (invoke ...) instead of (zero? (system* ...)). Other than that LGTM. > + (propagated-inputs > + `(("python-blessings" ,python-blessings) > + ("python-wcwidth", python-wcwidth))) > + (native-inputs > + `(("python-mock" ,python-mock) > + ("python-pyte" ,python-pyte) > + ("python-nose" ,python-nose))) > + (home-page "https://github.com/thomasballinger/curtsies") > + (synopsis "Library for curses-like terminal interaction with colored > +strings") > + (description "Curtsies is a Python library for interacting with the > +terminal. It features string-like objects which carry formatting inform= ation, > +per-line fullscreen terminal rendering, and keyboard input event reporti= ng.") > + (license license:expat))) > + > +(define-public python2-curtsies > + (package-with-python2 python-curtsies)) > --=20 > 2.13.6 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqFeAgACgkQoqBt8qM6 VPr4WAf/cWfbE0qfUJIfmvzTQwjaRL5teCBW8j43jIg/uK6kz0JMFTHSB4/Gs5d+ RYxDtM80CZjvsQTxzbJVZVdXL8phiIYXcwuwDUzfY/Ny4yo0Ce8lxxh09eOf3nvu KpMTf6BKTfJjP9upAA+PSslD4wieRboY0YRfhNlXdWwQzfchfSQTlepZKAoBZRaV MENDa85x1URVOncxvFzRW9UmsrGr3P0BbLgwQmk3lvv5eeuplkPKYNhE/2DzWZOz rlw1JL89uDPWxeUDUO8cyP4p82zv7IF7R+IkN2pEBJWnn/mWZVB/XvQ0dCXc9tGr n1UF44xfF9NW7nkN4udoGzK9/0OQ2A== =kNUF -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 07:13:51 2018 Received: (at 30341) by debbugs.gnu.org; 15 Feb 2018 12:13:51 +0000 Received: from localhost ([127.0.0.1]:43728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIQ7-0001IU-MJ for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:13:51 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:32979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIQ6-0001IM-Ae for 30341@debbugs.gnu.org; Thu, 15 Feb 2018 07:13:46 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2DF9220D2C; Thu, 15 Feb 2018 07:13:46 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 15 Feb 2018 07:13:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=mWZGZsO4cRw88TZNxvtHBUmahbKo0kzjRlqjPjr1sNc=; b=ZFPMSMSQ EKJIRTEHrLyNYbSghqR845jMTO2aqxxxerPIIkBkmNVnPLUMsdneL21SRyPuf+8s nDeZcMxt1bqGBulgfBiJVkq39uBtXXtUY3M3I64GiEUClOKNwR/eGIZM+x1iYJbm m95Lo+X3df0JArRp3jiYK/6ulq+kGDsnG48g9KJNp5pk+072Q1cljGDeYcDfCOTE y2W8bhK3873qUBaOw/t+qjjwIfc7vb8z4rrqmQG/LgLRxpq+9zogRE/zCKQHuF5r YgSkvm83wx08zKRPrQ/YUtJGMGk+BJSpQ3q0gzN4pYwv8ZFdIdhJk0US55dC66Oe ZujickcEsVY9aw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=mWZGZsO4cRw88TZNxvtHBUmahbKo0 kzjRlqjPjr1sNc=; b=FBJMw9HmcbqrfezhgYopOcuW9eLtva2stjQkQYHzmKsPm pNQCrtMK8PG0EGCkGjMeMzM5BixHFaPGoJRBfYSppbmqU1FuCau6Nnz6pO3hZR5Z n0lMb0Oyvtfxd3RMp9IlWgzje79fhK+EI1rMe1ptNm7RTPGNpH4pA4s21R1VU/bA lO8VAw4Ok6yNS4uzYQsXFKlAzKdVVHFUP13A6Qef5mSMzAxetZEfz4wFlHKykiWt ULKLmD2/wVnKLe06WucdFMeGQ00C9NNih8zVC2yDc27wc1w/AeOlPSA4hXr/gZlF bAzB0og8uJM7tLT5oxgHa6SVdcGJmYC+CGMxGw5ig== X-ME-Sender: Received: from localhost (ip-86-49-250-168.net.upcbroadband.cz [86.49.250.168]) by mail.messagingengine.com (Postfix) with ESMTPA id A03977E2E5; Thu, 15 Feb 2018 07:13:45 -0500 (EST) From: Marius Bakke To: Hartmut Goebel , 30341@debbugs.gnu.org Subject: Re: [bug#30341] [PATCH 4/4] gnu: Add bpython. In-Reply-To: <20180203222735.14042-3-h.goebel@crazy-compilers.com> References: <20180203222735.14042-1-h.goebel@crazy-compilers.com> <20180203222735.14042-3-h.goebel@crazy-compilers.com> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Thu, 15 Feb 2018 13:13:44 +0100 Message-ID: <87bmgqwivb.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hartmut Goebel writes: > * gnu/packages/python.scm (bpython, bpython2): New variables. [...] > +(define-public bpython > + (package > + (name "bpython") > + (version "0.17") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "bpython" version)) > + (sha256 > + (base32 > + "1mbah208jhd7bsfaa17fwpi55f7fvif0ghjwgrjmpmx8w1vqab9l")) > + (file-name (string-append name "-" version ".tar.gz")))) I think (file-name ...) here is unnecessary, no? > + (build-system python-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'remove-failing-test ;; FIXME > + (lambda _ > + (delete-file "bpython/test/test_args.py"))) #t)) Could you add some information about why this is deleted? > + (add-after 'wrap 'add-aliases > + ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, et= c. > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out"))) > + (for-each > + (lambda (old new) > + (symlink old ;; (string-append out "/bin/" old) ^^^ leftover comment? :) > + (string-append out "/bin/" new))) > + '("bpython" "bpython-curses" "bpython-urwid" "bpdb") > + '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")= ))))))) #t))) > + (propagated-inputs > + `(("python-pygments" ,python-pygments) > + ("python-requests", python-requests) > + ("python-babel" ,python-babel) ;; optional, for internationalizat= ion > + ("python-curtsies" ,python-curtsies) ;; >=3D 0.1.18 > + ("python-greenlet" ,python-greenlet) > + ("python-urwid" ,python-urwid) ;; for bpython-urwid only ^^^ only one semicolon for inline comm= ents. > + ("python-six" ,python-six))) > + (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 is a fancy interface to the Python > +interpreter. 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 bpython2 > + (let ((base (package-with-python2 > + (strip-python2-variant bpython)))) > + (package (inherit base) > + (name "bpython2") > + (arguments > + `(#:python ,python-2 > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'remove-failing-test ;; FIXME > + (lambda _ > + (delete-file "bpython/test/test_args.py") > + (substitute* "bpython/test/test_curtsies_repl.py" > + (("^(\\s*def )(test_get_last_word_with_prev_line\\W)" _ a= b) > + (string-append a "xxx_off_" b)) > + (("^(\\s*def )(test_complex\\W)" _ a b) > + (string-append a "xxx_off_" b))))) #t)) I'm not sure what's going on here, can you add a comment? Other than that looks good, thanks! > + (add-before 'build 'rename-scripts > + ;; rename the scripts to bypthon2, bpdb2, etc. > + (lambda _ > + (substitute* "setup.py" > + (("^(\\s+'bpdb)(\\s+=3D.*',?)\\s*?$" _ name rest) > + (string-append name "2" rest "\n")) > + (("^(\\s+'bpython)(-\\S+)?(\\s+=3D.*',?)\\s*?$" _ name = sub rest) > + (string-append name "2" (or sub "") rest "\n"))) > + #t)))))))) > --=20 > 2.13.6 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEyBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqFeXgACgkQoqBt8qM6 VPrsVgf4xtReNi+5Q32FNV9/TdqEkujQnMoViy6cHEk7rZhotry3ERK/xewAsxLD Q2b+vWTZvrPhET1QBcFMMG+oiknUjAbONLPegZKdlsQ2Y1GpOWbWfxfGEKx6XzV7 V9sNL8AcYUXcQyBricM/dxV6olU1NlOw8sBB9qc68IZpx4ZA7Lpuu4gVB67aw+RW eKBJh+T7nUwQFQsoIVVP5dcQSLSyOpC25cv9as6YubvWgXC3wCHYojhwPdQ0JHFh hNxu5nyR4fFe6YpfIfX/dj/f792uv03m4dxCnFq3jkUukJ+TXAF3Uex57znsQ8wB spgrLO22GTYR7/qVeHXhUYjtxlj7 =K5XF -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 15 15:46:02 2018 Received: (at 30341-close) by debbugs.gnu.org; 15 Feb 2018 20:46:02 +0000 Received: from localhost ([127.0.0.1]:45146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emQPq-0006yt-GR for submit@debbugs.gnu.org; Thu, 15 Feb 2018 15:46:02 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:52546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emQPo-0006yK-Ca for 30341-close@debbugs.gnu.org; Thu, 15 Feb 2018 15:46:00 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zj7bB6R6Dz1qtHV; Thu, 15 Feb 2018 21:45:58 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zj7bB5SVFz1r2b4; Thu, 15 Feb 2018 21:45:58 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 95cNj5V_d5ZY; Thu, 15 Feb 2018 21:45:58 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-212-114-232-111.dynamic.mnet-online.de [212.114.232.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Thu, 15 Feb 2018 21:45:58 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 28747601FD; Thu, 15 Feb 2018 21:45:58 +0100 (CET) Subject: Re: [bug#30341] [PATCH 4/4] gnu: Add bpython. To: Marius Bakke , 30341-close@debbugs.gnu.org References: <20180203222735.14042-1-h.goebel@crazy-compilers.com> <20180203222735.14042-3-h.goebel@crazy-compilers.com> <87bmgqwivb.fsf@fastmail.com> From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: Date: Thu, 15 Feb 2018 21:45:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <87bmgqwivb.fsf@fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: de-DE X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30341-close X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Thanks for the review. I adresses all your remarks and pushes as 3026de3fc..34581f68c -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From unknown Sat Jun 21 10:34:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 16 Mar 2018 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator