import hashlib


def sha1sum(path: str) -> str:
    """Computes the SHA-1 hash of the file at the given path."""
    sha1 = hashlib.sha1()
    with open(path, 'rb') as f:
        while True:
            data = f.read(1024*1024)
            if not data:
                break
            sha1.update(data)

    return sha1.hexdigest()