Okay it seems like the problem is that the package includes a plugin that is causing the problem. For plugins, there is the --server flag to pass in a mirror. It seems to work if I install the plugin using the server flag beforehand. As Pulumi doesn't seem to remember where it got the plugin from I will have to install it this way each time in the pipeline before running the regular pulumi install
command.