Need Self Hosted Digital Product Selling Solution

Hello,

I need self hosted digital product selling script (Lightweight - which should have to the point specific features) with below requirement :-

Membership management
Secure download links
In-built shopping cart
Coupons system
Affiliate management
Good looking theme

I’m sure there are couple of good solutions and I need your help to choose the best one.