From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 2/4] gnu: Add python-blessings. Date: Sat, 31 Dec 2016 15:02:00 +0100 Message-ID: <1483192922-21411-2-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]:47204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNKEe-00072D-MK for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNKEa-0004O1-8y for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:12 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:55990) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cNKEa-0004Np-3K for guix-devel@gnu.org; Sat, 31 Dec 2016 09:02:08 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3trQ4v0FbBz3hjMr for ; Sat, 31 Dec 2016 15:02:06 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3trQ4t10TlzvkXl for ; Sat, 31 Dec 2016 15:02:06 +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 OBMJvMpewFBT for ; Sat, 31 Dec 2016 15:02:05 +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:04 +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 81ACF6068D 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-blessings, python2-blessings): New variables. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2dea03b..8dbd64a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12307,3 +12307,32 @@ emulators. pyte follows the suit.") (define-public python2-pyte (package-with-python2 python-pyte)) + +(define-public python-blessings + (package + (name "python-blessings") + (version "1.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "blessings" version)) + (sha256 + (base32 + "01rhgn2c3xjf9h1lxij9m05iwf2ba6d0vd7nic26c2gic4q73igd")))) + (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. It +provides similar features to curses but beating some of their limitations: it +does not require clearing the whole screen for little changes, scrollback +buffer after program exits, avoid styling when on output redirection, etc.") + (license license:expat))) + +(define-public python2-blessings + (package-with-python2 python-blessings)) -- 2.7.4