On master (to be 2.6): In recipe libgpiod_1.1.1 when enabling python3 bindings the generated libgpiod2 package depends on python3-core. The result is when needing only libgpiod-tools in initramfs the whole of python3 is pulled in. I believe this dependency to be incorrect, instead libgpiod-python should depend on python3-core.
libgpio is part of meta-oe, and this bugzilla is for oe-core. Please report meta-oe bugs to the openembedded-devel mailing list.