'Return hash for dependencies'

def hash_dependencies(self, resolved_dependencies):

    resolved_dependencies = [(dep.name, dep.version, dep.exact, dep.dependency_type) for dep in resolved_dependencies]
    hash_str = json.dumps(sorted(resolved_dependencies))
    return hash_util.new_secure_hash(hash_str)[:8]
