Your IRA contribution will be limited by the income from the part-time job and may be limited to overall income limitations on the return.
Having a pension is added to your income but the fact that is a pension does not limit the IRA contribution.
Best thing to do, is to enter a Pension contribution in TurboTax and it will first see if it is allowable, and then show the tax benefit. It can be contributed for the 2017 tax year, up to April 17, 2018.
Please see below more detail.
https://ttlc.intuit.com/replies/3301534