Fails to detect python-gobject dependency
When I run namcap on a package which uses python-gobject, I get false dependency errors like this:
alacarte I: Link-level dependence (alacarte) in file ['Alacarte']
alacarte I: Link-level dependence (gedit) in file ['gi']
alacarte I: Link-level dependence (gitg) in file ['gi']
alacarte I: Link-level dependence (gnome-builder) in file ['gi']
alacarte I: Link-level dependence (gom) in file ['gi']
alacarte I: Link-level dependence (goocanvas) in file ['gi']
alacarte I: Link-level dependence (gst-editing-services) in file ['gi']
alacarte I: Link-level dependence (libblockdev) in file ['gi']
alacarte I: Link-level dependence (libgexiv2) in file ['gi']
alacarte I: Link-level dependence (libgit2-glib) in file ['gi']
alacarte I: Link-level dependence (libibus) in file ['gi']
alacarte I: Link-level dependence (python) in file ['os', 'gettext', 'xml', 'html', 'collections', 'sys', 'shutil', 'codecs']
alacarte I: Link-level dependence (python-cairo) in file ['cairo']
alacarte I: Link-level dependence (python-gobject) in file ['gi']
alacarte I: Link-level dependence (xapp) in file ['gi']
alacarte I: Script link detected (python) in file ['usr/bin/alacarte']
alacarte E: Dependency gedit detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency goocanvas detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency gitg detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency gst-editing-services detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency libibus detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency gnome-builder detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency libblockdev detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency gom detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency libgexiv2 detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
alacarte E: Dependency xapp detected and not included (libraries ['gi'] needed in files ['usr/lib/python3.10/site-packages/Alacarte/MenuEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/ItemEditor.py', 'usr/lib/python3.10/site-packages/Alacarte/util.py', 'usr/lib/python3.10/site-packages/Alacarte/MainWindow.py'])
namcap dependency detection should match with usr/lib/python3.10/site-packages/gi/__init__.py
but not with gi/overrides like usr/lib/python3.10/site-packages/gi/overrides/Gedit.py
, usr/lib/python3.10/site-packages/gi/overrides/GES.py
and so on.