Hi Eduard,
Dependencies of a package are usually listed in the ".PKGINFO" file, so that might be worth a look.
Relevant packages will be in http://repo.msys2.org/mingw/x86_64/
Thanks, this helped me to get a huge step closer to solvemy problems. I looked up the old versions of the required packages in above link and could find everything I needed. Now "import gi" in my extension will work. What ist not yet working is
from gi.repository import Gtk, Gdk
This fails with
Warning: failed to load shared library libgdk-3-0.dll referenced by typelib: libgdk-3-0.dll module not found
The package mingw-w64-x86_64-gtk3-3.22.9-1 was installed and libgdk-3-0.dll is in Inkscape. Not sure what is still missing here...
BTW: It really is a major problem of MSYS2 that there are no distributions with a fixed set of library versions :( Or is there any easy solution to reproduce a certain build environment?
E.g. if Inkscape was built in August 2017 I can only manually collect the required packages by date to get binary compatible libraries. The next point release of Inkscape might use different packages of MSYS2 and I have to start all over again. To make it even worse, there is not real archive of previous MSYS2 packages, so it is not guaranteed that I can get the matching libraries a few months after the Inkscape build.
Sebastian