Static method to easily construct an inventory from a list