as_pkg_metric_condition function

A pkg_metric subclass for general metric evaluation conditions