When I first had my Rohloff igh built into a 26" Wheel back in 2004, the advice given was to use Plain Gauge Spokes as they would be stronger for my Touring Bike.
This proved to be totally wrong, as on my first tour that year, a couple of Spokes broke, in fact one even broke when the bike was not being used overnight!
Luckily I had a few spare Spokes stored inside the handlebars, like you do!
Anyway upon return from the tour, I had the Plain Gauge Spokes, replaced with Double Butted Spokes, and the problem has never returned.
The Stress on the Spokes from a electric hub motor will be quite great due to the increased torque, although diminished slightly with a larger wheel, say 27.5" instead of 26".
You can get Rims that are drilled specifically for IGH's my thinking is that such rims would be better suited to Ebike's with Hub motor as well, and maybe they are used in anycase.
At the end of the day, whether it be IGH or electric Hub motor, the Spokes are going to be shorter that that of a regular derrailure gear bicycle, a longer Spoke will have more give, even more so if Double Butted.
I don't think that you would have any problems with Spokes on an Ebike with a Hub motor, providing the right choice in Spokes and Rims has been made in the first place.