Bearsy my friend, I've gotta say I can relate. I've been in the same boat with depression and I've been in the same boat with failing out of class due to a lack of attendance, boredom with the curriculum, anxiety, depression, laziness and ultimately immaturity. I essentially dropped out of high school, I say essentially because there is a bit of a back story that's involved and ultimately unnecessary as the cut and dry of it is still that I dropped out. I went on to get my GED two years later after much prodding and time wasting for ultimately no reason.
Shortly thereafter I enrolled in a community college, did real well for a real short period of time and slowly but surely stopped going. I then did this the next semester as well. I've attributed this to everything listed above as well as the things I had going on in my life at the time (best friend that was more like a brother since I was about 5 dying at 20), but truthfully what I found it to boil down to is mostly immaturity and laziness.
I realize now that while I could have easily done the work back then, the fact is I wasn't ready for the commitment no matter how much I wanted to tell myself I was. The constant prodding of my mother for me to go to college certainly didn't help as a good chunk of the reason I went was a stupid attempt to appease her that wound up costing them about $3,000 give or take. I never did the pretending to go thing, as that's a little pointless, because frankly you can't very well claim you're too depressed to get out of bed and then do so, hop on a bus, sit around campus all day and then come home and pretend. Well, I shouldn't say that, because you sure as shit can, but frankly it's at that point to me that it becomes more a matter of just being time to push yourself and grow up and just go into the class.
I understand that depression breeds complacency, and how easy it is to show up at campus and spend a class period or a few outside of the class you should be in, but the fact is you eventually realize how fucking stupid and wasteful that is. Your time would be better spent home jerking off or eating popsicles. There is absolutely no sense in going all the way there and not going to class unless you're getting something out of that other than pretending to appease your parents until they get the phone call/letter in the mail from your campus guidance department reminding you to withdraw or attend your classes. If that's all you're getting you might as well cut the shit now, or just bite the bullet and go in and actually appease them.
I gotta side with scatter in that it's a lot easier to putz about when you aren't the one paying for the classes, sad as that may be. I really wish I had some better advice for you bears because frankly as I said I did roughly the same thing and eventually through trial and error and the help of a kind soul or two realized I was being a fucking idiot and needed to get my shit in order and my ass in gear. I'm happy to say I'm currently back in school, three years after doing what you're doing now, doing well in my classes (high B's thus far), with plans to go into nursing. The fact is though, even this much later I've still got the inclination to slide back into the old routine of just kinda fucking off and skipping things for no legitimate reason. It's certainly a learned behavior, and certainly one you've got to make it a point to unlearn.
Smaerd also has a point in that absences definitely have a tendency to snowball. Once you've missed one class, or simply sat on campus instead of going to that class, it's a shitton easier to just continue the trend. I'm assuming you're where I am now and it's midway through the semester, which kinda means it's either time to put up or shut up. If it's not gonna happen this semester do yourself and your parents a favor and withdraw before it permanently fucks your GPA like I did one of those first two semesters and hopefully save some of the money put out for enrollment. But really bearsy you're an intelligent dude, and I'm sure you've got it in you somewhere, you've just gotta find your niche and a reason to do it that's stronger than whatever is bugging you. What are you trying to accomplish by going to school? What degree are you aiming for? What career? Come on man, we're all pulling for you.
For what it's worth, it's my experience that if your teacher happens to be halfway decent and you come to them and say "look, I fucked up, I'll be happy to do whatever work I've missed while also doing whatever we're currently doing" they are rather likely to give you a shot permitted you convince them it isn't just lip service. Sorry for the novel. I guess since sage made such a short post I figured I'd make up for it

.