From 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf Mon Sep 17 00:00:00 2001 From: takeshi_hoshina Date: Mon, 2 Nov 2020 11:07:33 +0900 Subject: basesystem-jj recipes --- .../python/python-coloredlogs_10.0.bb | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 external/meta-python2/recipes-devtools/python/python-coloredlogs_10.0.bb (limited to 'external/meta-python2/recipes-devtools/python/python-coloredlogs_10.0.bb') diff --git a/external/meta-python2/recipes-devtools/python/python-coloredlogs_10.0.bb b/external/meta-python2/recipes-devtools/python/python-coloredlogs_10.0.bb new file mode 100644 index 00000000..c7f97b3e --- /dev/null +++ b/external/meta-python2/recipes-devtools/python/python-coloredlogs_10.0.bb @@ -0,0 +1,32 @@ +SUMMARY = "Colored terminal output 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 so it should work on any UNIX \ +terminal. It’s currently tested on Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy. On \ +Windows coloredlogs automatically pulls in Colorama as a dependency and \ +enables ANSI escape sequence translation using Colorama." +HOMEPAGE = "https://coloredlogs.readthedocs.io" +SECTION = "devel/python" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=690da298a43805797a4fa7bbe180b3c6" + +SRC_URI[md5sum] = "0a186966a1955fff8cf9489373e691d9" +SRC_URI[sha256sum] = "b869a2dda3fa88154b9dd850e27828d8755bfab5a838a1c97fbc850c6e377c36" + +inherit pypi setuptools + +do_compile_prepend() { + sed -ie "s/find_pth_directory(),/'',/g" ${S}/setup.py +} + +do_install_append() { + rm -rf ${D}${datadir} +} + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-humanfriendly \ +" + +BBCLASSEXTEND = "native" -- cgit 1.2.3-korg