It is indeed based on the Joseph Delaney series. The Spook's Apprentice
is called The Last Apprentice: Revenge of the Witch
in the US. I haven't read the books yet, although I've heard good things about them. The movie doesn't look particularly good, but I'll check it out because I like the genre.