If you were on a hiring committee, and your otherwise-qualified-candidate had a political opinion you objected to in this way, perhaps with a similar donation, would you refuse to hire them?
If it’s about government fiscal policy, probably not. If it’s more along the lines of discriminating against or undermining people’s rights, then yeah I would refuse to hire them.