The consensus is because they tested Nuclear weapons.
I hope you see the difference.
If someone were to take away India's Nuclear weapons, we can make them again. Because we did it OURSELVES.
That is NOT the case with Pakistan. If due to political instability, Pakistan's Nuclear arsenal is seazed (It is not that easy), they will NOT be an a position to make them AGAIN.
So to say that India and Pakistan are Nuclear Powers is not accurate. They both have Nuclear weapons, but there is a distinction.
Why does Pakistan needs China's help to build Nuclear Plants for Energy ? India does NOT. We do it OURSELVES.