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.