SAN FRANCISCO — Despite an ongoing lawsuit with the National Rifle Association, San Franciscos Board of Supervisors set penalties last week on what is regarded as one of the toughest anti-gun laws in the country.

Last November, 58 percent of San Francisco voters passed Proposition H, a city ordinance that makes it illegal for residents to possess handguns and prohibits the manufacture, distribution, sale and transfer of firearms in the city.

As required by the proposition, the supervisors Wednesday approved a set of penalties for violating the law that include imposition of a $1,000 penalty and a jail term of between 90 days and six months.

San Francisco Mayor Gavin Newsom made the recommendations in a letter to the board, saying he had consulted first with the chief of police, district attorney, sheriff and city attorney.Immediately after the Nov. 8 election, the National Rifle Association and other gun advocates filed a lawsuit in the First District State Court of Appeal in San Francisco, arguing that Proposition H conflicts with state law allowing police agencies to issue handgun permits.

The San Francisco city attorneys office responded that local government, under home rule powers, is entitled to protect residents from handgun violence.

Superior Court Judge James Warren, who is overseeing the case, expects to rule on the case before the mid-June deadline. If Warren deems the proposition unlawful, the city will likely appeal the decision.