Update: A federal judge in Brooklyn sentenced Martin Shkreli to seven years in prison on Friday, following the former pharmaceutical executive’s conviction last summer on securities-fraud charges.

Former pharmaceutical executive Martin Shkreli is set to be sentenced Friday on federal securities-fraud charges, in a hearing that will likely be a referendum on Mr. Shkreli’s public persona as well as his criminal conduct.

Federal...