I had a similar situation with a client last month.
My mortgage broker was able to help them get an FHA loan.
There is a program that can qualify you after 2 years bankrupcty and or forclosure. if you have established credit during that time.
You should contact a mortgage broker for advice.