package/python-mako: add optional runtime dependency on python-pygments

Some extensions of python-mako use python-pygments, if they are used,
python-pygments must be added as a runtime dependency.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Romain Naour 2023-06-09 19:49:53 +02:00 committed by Thomas Petazzoni
parent 164801997e
commit adb3f5a3e0

View File

@ -7,3 +7,14 @@ config BR2_PACKAGE_PYTHON_MAKO
for maximum performance.
https://pypi.python.org/pypi/Mako
if BR2_PACKAGE_PYTHON_MAKO
config BR2_PACKAGE_PYTHON_MAKO_EXT_PYGMENTPLUGIN
bool "mako extension pygmentplugin"
select BR2_PACKAGE_PYTHON_PYGMENTS # runtime
help
Provide python-pygments support for
mako.ext.pygmentplugin
endif