North Korea conducted a nuclear weapons test last year , but has since been compliant in six-nation talks aimed at ending its nuclear weapons program .