Oh, boo-hoo!

Desperate actress Felicity Huffman is to face the music Friday, and not a moment too soon. A federal judge in Boston is set to sentence the Emmy-winning, Golden Globe-losing, Oscar-nominated thespian for her most spectacular performance to date: She lied, cheated and attempted to steal her daughter’s college seat out from under some poorer and more deserving candidate, paying $15,000 to hire someone to correct wrong answers on her kid’s SAT exam. And she whined about it.

This is no victimless crime.

Begging a judge to spare her from the slammer, Huffman, who displayed not a lick of remorse or shame — until she got caught — did something even more offensive: She played the victim.

Worse, she played the race card. Things have taken a bizarre turn in Felicity World, a craven, tone-deaf realm in which an elite, white 1 percenter is seeking pity and understanding for behaving like a rich, entitled bum.

In a Hail Mary ploy for leniency, she enlisted, among others, an equally celebrated, non-white Hollywood pal, “Desperate Housewives’’ co-star Eva Longoria, to argue that Huffman’s time spent volunteering with Latin charities improved the lives of “brown faces.’’

Longoria even suggested that racism was a factor in the on-set “bullying’’ she claimed to have endured at the hands of an unnamed cast member. It only stopped, she wrote to the judge, after Huffman intervened and saved the day.

“To a young, naïve Mexican girl who felt like I didn’t belong, those gestures meant the world to me,” Longoria wrote.

Violins, please.

Huffman is perhaps the most famous defendant in a wide-ranging college-entrance scandal, involving dozens of well-heeled folks charged with scamming and paying their kids’ way into prestigious institutions of higher education, schemes that could help degrade the value of a university diploma into worthlessness.

Huffman, who is married to actor William H. Macy, 69, (who has not been charged with a crime), was not beyond disgracing herself and her family in her zeal to get off.

In her own letter to the judge, Huffman, 56, revealed that her younger daughter, Sophia Grace Macy, 19, suffered from unspecified learning disabilities, and was even more hobbled from being raised by a poor excuse for a mom.

“I find Motherhood bewildering,” she wrote — as if all mothers don’t feel that way at times.

“In my desperation’’ — nice word — “to be a good mother I talked myself into believing that all I was doing was giving my daughter a fair shot.

“My own fears and lack of confidence, combined with a daughter who has learning disabilities often made me insecure and feel highly anxious from the beginning.”

This proves one thing: Wealth and fame cannot shield a woman from being exactly like you and me, no matter how much she spends to prevent this horror.

Compared to some others who handed crooked college-admissions consultant William “Rick” Singer big bucks, Huffman’s expenditure was relatively modest.

However, the audacious plot to have a test proctor correct answers on Sophia Grace’s math SAT, boosting her score by 400 points and greatly improving her college hopes, is breathtakingly brazen.

“As warped as this sounds now, I honestly began to feel that maybe I would be a bad mother if I didn’t do what Mr. Singer was suggesting,” Huffman mewled in her letter.

Huffman has pleaded guilty to conspiracy to commit mail fraud and honest services mail fraud, and is the first parent to be sentenced in this mess. Yet, while she’s doing her utmost to serve a no-jail year of probation and pay a fine, prosecutors want her to serve a month in stir, along with paying a $20,000 fine.

“It was wrong, she knew it was wrong and she actively participated in manipulating her daughter’s guidance counselor, the testing services and the schools to which her daughter applied,” they wrote in a court filing.

“Her efforts weren’t driven by need or desperation” — that word again — “but by a sense of entitlement, or at least moral cluelessness, facilitated by wealth and insularity.”

Felicity Huffman needs to take her lumps and work on being a better mother. It’s the only way the entire college-admissions system might begin to recover. And the only way her family might begin to heal.

apeyser@nypost.com