U.S. federal election law is pretty clear on this. If a company that is normally paid for a service provides that service to a federal election campaign for free, it counts as material support of that campaign, at the value that that service would have cost at regular price.
> Have you ever tried to write off open source work as a donation? I don't think this works the way you want it to. Software isn't a donation.
If you typically charge for your software development time hourly, and you provide 10 hours of software development to a 501(c)3, you indeed can write that off as a donation. You will just need a receipt from the org to which you donated your time.
You can't write off typical open source work as a donation because you're not donating anything. Under most open source licenses you keep your IP, but provide a free license to anyone who downloads the code. Even if a nonprofit uses your code, you set the price to $0.00, so there's nothing to write off.