The Catholic Church teaches that the homosexual tendency is not a sin:
Although the particular inclination of the homosexual person is not a sin, it is a more or less strong tendency ordered toward an intrinsic moral evil; and thus the inclination itself must be seen as an objective disorder. - e.g. in Letter to the Bishops of the Catholic Church on the Pastoral Care of Homosexual Persons, 3, 1 October 1986 | CDF.
What is the scriptural basis, if any, for the Catholic teaching that the homosexual tendency is of itself not a sin?