2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dnspython,
|
|
|
|
fetchPypi,
|
|
|
|
idna,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
pname = "email-validator";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.1";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "email_validator";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-IApwaAugiQS+bR7vcpIFzA1odjQ5mlkk2EJTPvuCS4Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dnspython
|
|
|
|
idna
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf
|
|
|
|
"tests/test_deliverability.py"
|
|
|
|
"tests/test_main.py"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "email_validator" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-15 16:39:30 +00:00
|
|
|
description = "Email syntax and deliverability validation library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "email_validator";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/JoshData/python-email-validator";
|
|
|
|
changelog = "https://github.com/JoshData/python-email-validator/releases/tag/v${version}";
|
|
|
|
license = licenses.cc0;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
|
|
};
|
|
|
|
}
|