If `sage -i` is passed the additional option `--allow-upstream`, it will attempt to download from that URL if it cannot find the package on the sage mirrors.
For builds invoked by `make`, one can use `make SAGE_SPKG="sage-spkg --allow-upstream"`.
I have used this ticket in conjunction with
https://trac.sagemath.org/ticket/29087 ("Add GitHub Actions workflow for testing on various Linux distributions via Docker and macOS with homebrew"; needs review), but it could be helpful for patchbots as well.