From 0f1c67cdd9043ea6a232816d6e217fd07f567a81 Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 20 Sep 2016 13:44:20 +0000 Subject: [PATCH 2/8] gnu: Add python-colorlog. * 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 995332e..6561db7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -529,6 +529,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.10.0