Speaker pHat python libraries fail to install on Pi 4/5 with Debian 12

Hi there, I’m trying to reuse an old device of yours, the speaker phat. I used to have this working back in the old days of the pi 2 and pi zero without issue but on a modern pi (say, the pi 4 or 5) with debian 12 the installer script fails with errors about “not installing python modules directly” and “use apt to install python modules”.

It also looks like the wiring pi library dependency is no longer maintained/available.

Is there a way to get the phat working on a modern pi system or is it just deprecated and no longer supported at all? Thanks!

Having the exact same issue(s)
The only way I’ve gotten this to work is by using buster, clean installs of anything later fail