The present invention encompasses compounds of the formula (I), wherein the groups R1, Cy and Y are defined herein, which are suitable for the treatment of diseases related to BTK, and processes for making these compounds, pharmaceutical preparations containing these compounds, and their methods of use.本發明涵蓋式(I)化合物, 其中基團R1、Cy及Y係定義如本文中,該等化合物適用於治療與BTK相關之疾病;及用於製造此等化合物之方法、含有此等化合物之醫藥製劑及其使用方法。