Restrict Local Pickup by Customer Country

For tax reasons, I would like to restrict local pickup to customers from certain countries. For example, if a customer is from Germany they can do a local pickup but if they are from the USA they cannot.