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