Build fails with python 3.12 No module named 'ConfigParser'

Job #6076633725 failed for 735efd0f:

I: pybuild base:305: python3.12 setup.py clean 
Traceback (most recent call last):
  File "/builds/kalilinux/packages/python-roguehostapd/debian/output/source_dir/roguehostapd/config/hostapdconfig.py", line 10, in <module>
    from configparser import SafeConfigParser  # Python 3
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib/python3.12/configparser.py). Did you mean: 'RawConfigParser'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/builds/kalilinux/packages/python-roguehostapd/debian/output/source_dir/setup.py", line 15, in <module>
    from roguehostapd.config.hostapdconfig import WHITE, RED
  File "/builds/kalilinux/packages/python-roguehostapd/debian/output/source_dir/roguehostapd/config/hostapdconfig.py", line 12, in <module>
    from ConfigParser import SafeConfigParser  # Python 2
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'ConfigParser'
E: pybuild pybuild:391: clean: plugin distutils failed with: exit code=1: python3.12 setup.py clean