Prosopsis cineraria is one tree that grows well in hot dry climates and produces edible bean pods. It is in the Mimosoidae subfamily. It is eaten a lot in India.
There are also other Mesquite species whose seeds are edible. These also like hot and dry climates.