It might depend, on country, but I know that usually you can mention donations as "donations" in your income papers/form.
Don't know how it would be for an opensource project. Mentioning something like "open source browser extension uBlock Origin" probably...
Interesting how people report their donations, patreons, etc.