According to PEP 503 package names should only use ASCII alphanumeric and - (dash), all other characters should be replaced with - (dash).
After installing email-validator (correct name in PyPI), the name for the installed package given by pip list is email_validator.
I think just the name in setup.cfg has to be changed to email-validator. (The import would of course still be email_validator.)