Invenio-Records-Resources is on PyPI so all you need is:
$ pip install invenio-records-resources[opensearch2]
Invenio Records Resources module to create REST APIs