Making friends when you are an isolated Islamist government is hard at the best of times, and at times like these, it's even harder. The Arab Spring has shifted the priorities of Middle East nations and pushed Gaza to the back of the political agenda, writes Sam Morris.

Isolated and alone, the Hamas government in Gaza has lost nearly all of their external support, and internally they are attempting to keep a lid on any disquiet. The wave of optimism felt in the tiny enclave after Muhammad Morsi rode into power in Egypt must now feel like a distant memory. Morsi never fulfilled the promise that was expected from Hamas' Muslim Brotherhood cousins. Now with the once ruling party being hounded out of Egypt, Hamas has to look elsewhere for support.

Two key historical allies of Hamas have also possibly fallen by the wayside. The relationships with both Iran and Qatar’s look uncertain in the future.

The breakdown in the Iranian-Hamas relationship is due to the stance taken by Hamas over the conflict in Syria. Iran has been supporting the Syrian government and is now backing Bashar Al-Assad to the hilt. Hamas, however, have taken a stance against the Syrian government, who once viewed themselves as defenders of the Palestinian cause. While their external headquarters were based in Damascus, Hamas received significant funding from Iran but Khaled Meshaal, the external leader of Hamas, effectively severed Hamas and Iranian ties when he decided to leave Damascus and bring an end to their relationship with the Syrian regime.

In this matter, certain voices seem unrepentant. In a recent speech, Ismail Haniyeh, the Prime Minister of Hamas, was quoted as saying, “(Hamas) does not regret nor does it apologize for honourable positions, just to placate others,” quite obviously alluding to Hamas’ position on the Syrian issue. This shows a failure of simple diplomacy. When you have few friends, don't look a gift horse in the mouth.

The fact that Gaza is now far down the list of priorities for Iran further complicates the issue for Hamas. Both Syria and the nuclear negotiations are more of a priority to Tehran; it is up to Hamas to push themselves back up Iran's agenda. Khaled Meshaal planned to visit Iran on October 14, to rebuild their relationship, but the response has been rescheduling. Iran is obviously not willing to rebuild their relationship just yet. Especially since President Hassan Rouhani appears to want to push his image as a pragmatist and a partner that the West can work with, meaning more reason for Hamas to feel isolated.

Financial pressure is now on Hamas. It is claimed that due to Egypt's crackdown on Gaza's now famous tunnels the economy is losing $230 million per month. Since Hamas monitors what is brought in through the tunnels and takes its cut in taxes, this would have hit the organisation hard. If you had visited some of the tunnels that pop up on the Gazan side of the border you could have seen groups of Hamas policemen waiting for supplies to arrive. These days it seems the arrival of goods are few and far between.