def fetch_package_version(dist_name):
    """
    >>> fetch_package_version('sentry')
    """
    try:
        import pkg_resources
    except ImportError:
        raise NotImplementedError(
            'pkg_resources is not available on this Python install')
    dist = pkg_resources.get_distribution(dist_name)
    return dist.version
