I understand (not sure what your industry is). However, the law doesn't understand, and doesn't care, whether it is feasible or not.
Legally, Maternity leave replacements need to be advertised as such ie fixed term for whatever length of time. Basically if no-one applies then you are in a...