1{ lib, buildPythonPackage, fetchPypi, isPy3k, dnspython, idna, ipaddress }:
2
3buildPythonPackage rec {
4 pname = "email-validator";
5 version = "1.1.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1a13bd6050d1db4475f13e444e169b6fe872434922d38968c67cea9568cce2f0";
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}