Leave them be
Same situation to me during uni, I just ended up hanging out with people from different courses and different unis.
When I got to work I found much more relatable people.
Some types of people just don't mix well, and don't force yourself to fit in with people you don't like because you will get stressed and won't get anywhere.
Statistically 1 in 10 people would really 'click' with you, 5/10 are ok, then there's 4 in 10 where you have nothing in common to say and you can't hold a conversation more than 1 min. You just have to cherish that 1 person and keep minimum politeness with the other 9 to not create enemies.
Keep minimum contact. If they ask to borrow books etc I would just say no I'm using it. Definitely don't ask them questions.
You've got like 6 months remaining, the moment you leave uni those people will worth less than a fart to you