Assuming you are using DOL start, I agree with MintJulep.
A shortcut to the analysis would be to consult NEMA MG-1 table 12-7 (attached).... you enter the table with speed and horsepower and it tells you the maximum inertia that the motor can start DOL. I believe it assumes that in addition to acceleration torque, the load demands additional torque proportional to speed^2 reaching full-load torque at full speed... that is probably a little bit conservative unless you have a lot of friction, but it doesn't hurt to throw some margin in there.
So basically the process suggested would be:
1 - Select a gear ratio and motor speed which will give 5 degrees/minute. (*)
2 - Determine effective inertia of your load based on the inverse square of speed ratio.
3 - Find the smallest HP motor whose associated load inertia in the table is above your effective inertia.
You may also want to think about breakaway torque associated with friction in your gear system and if you have any way to estimate that, verify it is not more than motor locked rotor torque.
If you suspect voltage droop at motor during start below nameplate, that's something to consider as well. I think the table assumes 90% of nominal voltage, but don't quote me on that.
If you have other requirements regarding start or stop or precise speed control (more precise than you can estimate slip) that you haven't told us, you'll have to check them.
(*) - There are only a finite number of speeds available for motors without vfd....3600,1800,1200, 900 RPM etc. You might compare what the system looks like ($) for a few different speeds: I think faster motors will tend to give lower motor cost and higher gear cost.
=====================================
(2B)+(2B)' ?