Sudo apt install python {package}

Hi

I am trying to install python package which cannot be installed via pip
…so putting it in requirements.txt is rulled out
The command to be run is ‘sudo apt install {package}’

Any pointers, how this could be achieved in before_install hook

Thanks!
Ashish