From 36170f8801dbb33d91626447ff3e69bf1ac31dca Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 21 Oct 2017 23:29:17 +0000 Subject: [PATCH 4/6] gnu: Add python-coloredlogs. * gnu/packages/python.scm (python-coloredlogs): New variable. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 388d47d6d..12b6f891f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1180,6 +1180,35 @@ log levels NOTICE, SPAM, SUCCESS and VERBOSE.") (define-public python2-verboselogs (package-with-python2 python-verboselogs)) +(define-public python-coloredlogs + (package + (name "python-coloredlogs") + (version "7.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "coloredlogs" version)) + (sha256 + (base32 + "1blcann6dyg5dhps9pg12rn0q0rjrlajpmmil0gy0j4cbvnl2il9")))) + (build-system python-build-system) + (arguments + `(;Tests require some updated modules + #:tests? #f)) + (propagated-inputs + `(("python-capturer" ,python-capturer))) + (home-page "https://coloredlogs.readthedocs.io") + (synopsis "Colored stream handler for Python's logging module") + (description + "The coloredlogs package enables colored terminal output for Python's +logging module. The ColoredFormatter class inherits from +logging.Formatter and uses ANSI escape sequences to render your logging +messages in color. It uses only standard colors.") + (license license:expat))) + +(define-public python2-coloredlogs + (package-with-python2 python-coloredlogs)) + (define-public python-eventlet (package (name "python-eventlet") -- 2.14.2