This phase II trial studies how well alisertib works in treating patients with peripheral T-cell non-Hodgkin lymphoma that has come back after a period of improvement or has not responded to treatment. Alisertib may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth.