doc: make the documentation generation independent of hawkey the python module.

This is so readthedocs.org work. Uses the same approach as DNF commit fce01f9.