I had a similar error on a different project.
The solution I found was to use a more recent version for hdl-make. hdl-make v3.3 is the last version available on pip, but it is not actually the last version. You have to install it from the official git repository: https://gitlab.com/ohwr/project/hdl-make