For future careers, anxiety/depression won't affect your ability to get employed. Having a diagnosis of Bipolar Disorder, Schizophrenia etc can affect career choices (some careers will not hire you and it's not illegal for them to 'discriminate' against you in these cases -- e.g. Army, Government jobs, I assume something like surgeon careers would be affected). But just anxiety/depression won't affect you.
You can chose to declare it or not, but like what ~Tara~ said, not disclosing it leaves you unable to be protected. If you do disclose it, be prepared for future employers to ask you about it. If your mental health prevents you from doing the job correctly, they won't employ you. So you will need to prove things like anxiety/depression are under control (in treatment or being managed). I am not sure what the job of a pharmacist is (not sure what the job involves) so I can't give you more in-depth advice on what anxiety/depression may have an affect on within the job (anxiety can affect a persons ability to interact with customers for example).