Seems mostly very doable.
Back in 2011 at my (failed) startup we had a license like that with an NLP provider/ vendor. I don't remember the exact details, but, one caveat was that we HAD to have an equity part to the deal to satisfy Delaware Law/ some other esoteric bit I don't recall.
We already had negotiated an equity stake baked into the agreement, but I do recall that being a very specific requirement both our lawyers raised. I wonder how you could scale something like your proposed scenario and the overhead for the equity requirement, for open source projects.