It's unclear if Belarus and Kazakhstan really had nukes in the first place such that they could "give them up"—as with Ukraine, the nukes stationed there were Soviet nukes, controlled by Moscow.
South Africa does seem to be doing okay, though. It's not that likely to be invaded by Zimbabwe, and since the end of apartheid, a civil war is looking increasingly unlikely.
Brazil holds the key technologies to develop it and the sixth bigger deposit of uranium (with only 30% of the territory mapped). The navy is even currently developing a nuclear submarine that will be totally based on local technology.
A nuclear submarine is also not what is meant by "nuclear weapon", although it is arguably a weapon and has the word "nuclear" in its name. The phrase "nuclear weapon" conventionally refers to "atomic bombs" and "hydrogen bombs", which are bombs powered by respectively fission and fusion. A nuclear submarine is just a regular submarine powered by a nuclear reactor. Brazil already has many nuclear reactors that are in some sense "totally based on Brazilian technology" and has for decades.