1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, dnspython 5, idna 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "email-validator"; 11 version = "1.1.3"; 12 13 src = fetchFromGitHub { 14 owner = "JoshData"; 15 repo = "python-${pname}"; 16 rev = "v${version}"; 17 sha256 = "19n6p75m96kwg38bpfsa7ksj26aki02p5pr5f36q8wv3af84s61c"; 18 }; 19 20 propagatedBuildInputs = [ 21 dnspython 22 idna 23 ]; 24 25 checkInputs = [ 26 pytestCheckHook 27 ]; 28 29 disabledTests = [ 30 # fails with dns.resolver.NoResolverConfiguration due to network sandboxing 31 "test_deliverability_no_records" 32 "test_deliverability_found" 33 "test_deliverability_fails" 34 "test_deliverability_dns_timeout" 35 "test_main_single_good_input" 36 "test_main_multi_input" 37 "test_main_input_shim" 38 "test_validate_email__with_caching_resolver" 39 "test_validate_email__with_configured_resolver" 40 ]; 41 42 pythonImportsCheck = [ 43 "email_validator" 44 ]; 45 46 meta = with lib; { 47 description = "A robust email syntax and deliverability validation library for Python 2.x/3.x."; 48 homepage = "https://github.com/JoshData/python-email-validator"; 49 license = licenses.cc0; 50 maintainers = with maintainers; [ siddharthist ]; 51 platforms = platforms.unix; 52 }; 53}