The present invention relates to a novel family of kinases inhibitors. Compounds of this class have been found to have inhibitory activity against members of the TEC kinase family, particularly BTK. The present invention is directed to a compound of Formula I or pharmaceutically acceptable salt, solvate, solvate of salt, stereoisomer, tautomer, isotope, prodrug, complex or biologically active metabolite thereof, for use in therapy.