#TIL file:///abspath and file://localhost/abspath are strictly equivalent per RFC 8089. Python's pypa/packaging had a bug in the past, all URLs without a hostname were rejected, it became impossible to specify a Python pip dependency by path on Debian oldoldstable. The format file://localhost/ saved my package. Thankfully, pip developers got it right.
If you have a fediverse account, you can quote this note from your own instance. Search https://mk.absturztau.be/notes/aeyxamw6pydz0039 on your instance and quote it. (Note that quoting is not supported in Mastodon.)