1{ lib, buildPythonPackage, fetchPypi, isPy3k, dnspython, idna, ipaddress }: 2 3buildPythonPackage rec { 4 pname = "email_validator"; 5 version = "1.0.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"; 10 }; 11 12 doCheck = false; 13 14 propagatedBuildInputs = [ 15 dnspython 16 idna 17 ] ++ (if isPy3k then [ ] else [ ipaddress ]); 18 19 meta = with lib; { 20 description = "A robust email syntax and deliverability validation library for Python 2.x/3.x."; 21 homepage = https://github.com/JoshData/python-email-validator; 22 license = licenses.cc0; 23 maintainers = with maintainers; [ siddharthist ]; 24 platforms = platforms.unix; 25 }; 26}