Set version from command line?

The version key isn’t really hardcoded and can be set in build time, refer Using external metadata for more info.

You can make the source pulling non static by using the override-pull Scriptlets.