From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 3/4] gnu: Add python-curtsies. Date: Sat, 31 Dec 2016 15:02:01 +0100 Message-ID: <1483192922-21411-3-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]:47184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNKEd-000727-Iy for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNKEb-0004OG-6W for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:11 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:47834) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cNKEb-0004O5-0U for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:09 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3trQ4w0BFpz3hjcB for ; Sat, 31 Dec 2016 15:02:08 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3trQ4w05rkzvkXl for ; Sat, 31 Dec 2016 15:02:08 +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 Iat3bufDW9q3 for ; Sat, 31 Dec 2016 15:02:06 +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:06 +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 909E56092B 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-curtsies, python2-curtsies, python-curtsies-0.1, python2-curtsies-0.1): New variables. --- gnu/packages/python.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8dbd64a..75f5fba 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12336,3 +12336,54 @@ buffer after program exits, avoid styling when on output redirection, etc.") (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 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)) + +(define-public python-curtsies-0.1 + (package + (inherit python-curtsies) + (version "0.1.23") + (source + (origin + (method url-fetch) + (uri (pypi-uri "curtsies" version)) + (sha256 + (base32 + "1lv5zmca18157d69h4hqm34wbiblimd8h4gzzic2vkw3l61j622a")))))) + +(define-public python2-curtsies-0.1 + (package-with-python2 python-curtsies-0.1)) -- 2.7.4