2018-07-21 01:44:44 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, dnspython, idna, ipaddress }:
|
2017-07-04 00:30:58 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-11-29 17:24:49 +00:00
|
|
|
pname = "email-validator";
|
2020-11-29 14:04:27 +00:00
|
|
|
version = "1.1.2";
|
2017-07-04 00:30:58 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:27 +00:00
|
|
|
sha256 = "1a13bd6050d1db4475f13e444e169b6fe872434922d38968c67cea9568cce2f0";
|
2017-07-04 00:30:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-12-10 02:15:45 +00:00
|
|
|
dnspython
|
2017-07-04 00:30:58 +01:00
|
|
|
idna
|
|
|
|
] ++ (if isPy3k then [ ] else [ ipaddress ]);
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A robust email syntax and deliverability validation library for Python 2.x/3.x.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/JoshData/python-email-validator";
|
2017-07-04 00:30:58 +01:00
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|