Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, isPy3k, dnspython, idna, ipaddress }: 2 3buildPythonPackage rec { 4 pname = "email_validator"; 5 version = "1.1.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "63094045c3e802c3d3d575b18b004a531c36243ca8d1cec785ff6bfcb04185bb"; 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}