1{ 2 lib, 3 buildPythonPackage, 4 dnspython, 5 fetchPypi, 6 idna, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "email-validator"; 13 version = "2.2.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 pname = "email_validator"; 20 inherit version; 21 hash = "sha256-y2kPNExhenFPIuZq53FEWhzrRoIRUt+OFlxfmjZFgrc="; 22 }; 23 24 dependencies = [ 25 dnspython 26 idna 27 ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 disabledTestPaths = [ 32 # dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf 33 "tests/test_deliverability.py" 34 "tests/test_main.py" 35 ]; 36 37 pythonImportsCheck = [ "email_validator" ]; 38 39 meta = with lib; { 40 description = "Email syntax and deliverability validation library"; 41 mainProgram = "email_validator"; 42 homepage = "https://github.com/JoshData/python-email-validator"; 43 changelog = "https://github.com/JoshData/python-email-validator/releases/tag/v${version}"; 44 license = licenses.cc0; 45 maintainers = with maintainers; [ siddharthist ]; 46 }; 47}