EXCLUSIVE: Mister Smith inks deals on drama starring Patel and Jeremy Irons.

Mister Smith Entertainment has all-but sold out on biopic The Man Who Knew Infinity.

Deals to have completed at the recent AFM include Germany and Spain (Wild Bunch), Australia (Icon Australia), Scandinavia (SF), Latin America (Sun) and Japan (Kadokawa).

Dev Patel stars as maths genius Srinivasa Ramanujan alongside Jeremy Irons who plays the prodigy’s mentor G.H.Hardy.

Co-starring are Devika Bhise, Toby Jones and Stephen Fry.

Matthew Brown directs and wrote the script, which is based on the biography The Man Who Knew Infinity: A Life of the Genius Ramanujan by Robert Kanigel.

“We’re delighted with the response,” Mister Smith CEO David Garrett told ScreenDaily. “We launched the film at the AFM and have sold out worldwide other than three territories.

“The combination of script, cast, footage and proper pricing really hit home with buyers.”

The film is an Edward R. Pressman and Animus Films production in association with Xeitgeist and Marcys Holdings.

Pressman and Animus’ Jim Young produce along with Sofia Sondervan of Dutch Tilt Film, Pressman’s chief operating officer Jon Katz and Xeitgeist’s Joe Thomas.

Filming took place in the UK and India in summer 2014.