The problem with those bikes is the indicator chain for the shift cable that exits the right side of the hub and goes through the nut. You'd need something with a slot to clear that in order to make it work, something like the socket for an automotive oxygen sensor. Might take some tweaking to cut it down and make it all work.
The alternative would be to use a trainer like the old Vetta that did not support the bike by the rear axle ends, but then you have to remove the front wheel and the kickstand in order to mount the bike on the trainer.