It depends on both flycheck and popup so you should add a :depends.