Found a solution here
The instruction for the installation of python-lirc for a Home Assistant installation in a python virtual enviroment are here.