You're conveniently ignoring the part where Hamas wants a 10 year peace truce with reasonable demands, which Israel ignored.
So they decided to form the unity government with the Palestinian Authority instead. But of course any step towards peace cannot be allowed by Israel, so they provoked this entire conflict on a lie.
http://www.democracynow.org/2014/7/15/after_palestinian_unity_deal_did_israel
I made my post knowing all of that.