Invenio-OAuth2Server is on PyPI so all you need is:
$ pip install invenio-oauth2server
Invenio module that implements OAuth 2 server.