[debug] syntax highlight SQL and RQL debug output
This prevent DBG_RQL and DBG_SQL output to looks like a gigantic blob of white
text.
Do this only if we detect that we are in a tty and that pygments is installed.
Closes #17222885
Tests: unittest
Depends:
python3-cubicweb, cubicweb-ctl,
@builddeps@,
python3-pytest,
python3-flake8,
python3-psycopg2, postgresql, postgresql-plpython,
python3-ldap3, slapd, ldap-utils
Restrictions: allow-stderr, isolation-container
Tests: skeleton-packaging
Depends:
python3-cubicweb, cubicweb-ctl,
python3-pyramid, python3-wsgicors,
devscripts, equivs, lintian, autopkgtest
Restrictions: allow-stderr, needs-root