Have a look at this
https://uk.banggood.com/search/motor...r-digital.html
It might be an easier way out than finding a marriage for a custom speedo and a mechanical drive
rigging a hall effect sensor working on the rear disc bolts will be a lot easier