A general framework for the distribution of the eigenvalues of Wishart matrices