A class of degenerate diffusion equations with a singular nonlinear term