From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 2/7] gnu: Add python-colorlog. Date: Tue, 31 Jan 2017 12:53:34 +0000 Message-ID: <20170131125339.18500-3-contact.ng0@cryptolab.net> References: <20160925173931.GD9499@jasmine> <20170131125339.18500-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYXvB-0006QU-Bc for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYXvA-0002i7-F5 for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:29 -0500 Received: from aibo.runbox.com ([91.220.196.211]:60882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYXvA-0002hi-7V for guix-devel@gnu.org; Tue, 31 Jan 2017 07:52:28 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cYXv8-0004JH-S6 for guix-devel@gnu.org; Tue, 31 Jan 2017 13:52:27 +0100 In-Reply-To: <20170131125339.18500-1-contact.ng0@cryptolab.net> 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: ng0 From: ng0 * gnu/packages/python.scm (python-colorlog): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 58222be4d..f6516d26b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -556,6 +556,33 @@ Python sytax. Only basic math opearations and data structures are provided.") (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) +(define-public python-colorlog + (package + (name "python-colorlog") + (version "2.7.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "colorlog" version)) + (sha256 + (base32 + "0gpkja9zcplf29zmjcvix7pnic4xkbb1s0lkaab4k01r6np7s6cf")))) + (build-system python-build-system) + (inputs + `(("python-colorama" ,python-colorama))) + (home-page "https://github.com/borntyping/python-colorlog") + (synopsis "Log formatting with colors") + (description + "@code{colorlog.ColoredFormatter} is a formatter for use with +the Python logging module that outputs records using terminal colors.") + (license license:expat))) + +(define-public python2-colorlog + (let ((colorlog (package-with-python2 python-colorlog))) + (package (inherit colorlog) + (native-inputs + `(("python2-setuptools" ,python2-setuptools)))))) + (define-public python-paramiko (package (name "python-paramiko") -- 2.11.0