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.本發明係關於一種新穎激酶抑制劑家族。已發現此類別之化合物針對TEC激酶家族之成員、尤其BTK具有抑制活性。本發明係針對一種式I化合物或其醫藥學上可接受之鹽、溶劑合物、鹽之溶劑合物、立體异構體、互變异構體、同位素、前藥、複合物或生物活性代謝物,其用於治療。