2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dnspython
|
|
, fetchFromGitHub
|
|
, idna
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "email-validator";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JoshData";
|
|
repo = "python-${pname}";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-o7UREa+IBiFjmqx0p+4XJCcoHQ/R6r2RtoezEcWvgbg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dnspython
|
|
idna
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf
|
|
"tests/test_deliverability.py"
|
|
"tests/test_main.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"email_validator"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Email syntax and deliverability validation library";
|
|
homepage = "https://github.com/JoshData/python-email-validator";
|
|
changelog = "https://github.com/JoshData/python-email-validator/releases/tag/v${version}";
|
|
license = licenses.cc0;
|
|
maintainers = with maintainers; [ siddharthist ];
|
|
};
|
|
}
|