I think Pakistan was not a factor in terms of decision India to obtain nuclear weapon. Because there was no talk of Pakistan having any capability. The main factor was China. And the international prestige that China was getting as a consequence of having its own nuclear weapons.
Swamy, Subramanian. "Interview with Subramanian Swamy, 1986." War and Peace in the Nuclear Age, WGBH Educational Foundation, 26 Feb. 1986.
Sourced by: Quote.org sourced