Magnolia Pictures has acquired North American rights to James McAvoy’s British black comedy “Filth” and plans a spring release.

“Filth” has already opened in the U.K., where it is the year’s second-highest grossing R-Rated film. The cast includes Jamie Bell, Imogen Poots, Eddie Marsan, Shirley Henderson and Oscar-winner Jim Broadbent.

McAvoy plays a sergeant who spends his time indulging in drugs, alcohol, sexually abusive relationships and systematic bullying of his coworkers and friends. While working on the murder case of a Japanese student, he starts coming unhinged.

Jon S. Baird directed from his own screenplay, adapted from the Irvine Welsh novel. Baird produced through his Logie Pictures banner with eight other producers — Ken Marshall for Steel Mill Pictures, Trudie Styler and Celine Rattray for Maven Pictures, James McAvoy, Christian Angermayer and Jens Meurer for Film House Germany, Mark Amin and Will Clarke.

“Filth” received British Independent Film Award nominations for McAvoy (Best Actor), Baird (Best Director), Henderson (Best Supporting Actress), Marsan (Best Supporting Actor) and a nomination for Best Achievement in Production.

The deal was negotiated by Magnolia’s John Von Thaden with CAA and UTA on behalf of the filmmakers.