Yes, you can make a Roth contribution because your spouse had enough earned income.
From the IRS: "If you file a joint return, you may be able to contribute to an IRA even if you did not have taxable compensation as long as your spouse did. The amount of your combined contributions can’t be more than the taxable compensation reported on your joint return."