Foreign Tax Credit for taxes paid on Capital Gains on equities

I have short and long term capital gains from sale of shares in stocks that I held in India. I have paid taxes in India on these gains. Can I take credit for these taxes in Form 1116?