def METHOD_NAME(self, pkg, min_ver):
    """
    Run pkg-config to check if a package is installed
    """
    proc = sp.run(['pkg-config', pkg, '--atleast-version', min_ver],
                  stdout=sp.PIPE, stderr=sp.STDOUT)
    return proc.returncode == 0