security – How to make app trusted on Big Sur?

I want to run SageMath on my mac. It uses python, so whenever I start big-sur asks me to confirm that I want to trust the developer. I know there is the

sudo spctl --master-disable

command to disable the protection completely. However, I want to keep that protection enabled. Is there a way to mark the app or developer as trusted?