$ yaourt -S gnome-common gobject-introspection
$ ./bin/pip install git+https://git.gnome.org/browse/pygobject@3.24.1#egg=pygobject --upgrade
$ ./bin/python
>>> import gi
>>> gi.version_info
(3, 24, 1)
>>> from gi.repository import GLib
>>> from gi.repository import Gio
We should update PyGobject to version 3.24.1
Now it's possible to install the package via PIP. For example in archlinux: