    def _getpwnam(name):
        """Wrapper function to protect against `pwd` not being available
        on Windows
        """
        import pwd

        return pwd.getpwnam(name)
Wrapper function to protect against `pwd` not being available
on Windows
jupyterhub/auth.py