I’m not an experienced JuMP user, but I think you are looking for @NLconstraint.
@NLconstraint
Here is an example: