blob: 99ae071f4ae3c305683f9bb02c65c7f45715409f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ 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 ];
};
}
|