See https://github.com/cython/cython/pull/3982/files for an example of how to do so.
This is necessary since pip’s vendoring logic is being changed to allow using wheels preferentially. This means it would need to use a hard-coded URL for the license of this package, until this package adds a license directly.