Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / email-validator / default.nix
blobeea86196c22903d6ea61fa1ba443a1015c7dcc74
1 { lib
2 , buildPythonPackage
3 , dnspython
4 , fetchPypi
5 , idna
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "email-validator";
12   version = "2.1.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchPypi {
18     pname = "email_validator";
19     inherit version;
20     hash = "sha256-IApwaAugiQS+bR7vcpIFzA1odjQ5mlkk2EJTPvuCS4Q=";
21   };
23   propagatedBuildInputs = [
24     dnspython
25     idna
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   disabledTestPaths = [
33     # dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf
34     "tests/test_deliverability.py"
35     "tests/test_main.py"
36   ];
38   pythonImportsCheck = [
39     "email_validator"
40   ];
42   meta = with lib; {
43     description = "Email syntax and deliverability validation library";
44     mainProgram = "email_validator";
45     homepage = "https://github.com/JoshData/python-email-validator";
46     changelog = "https://github.com/JoshData/python-email-validator/releases/tag/v${version}";
47     license = licenses.cc0;
48     maintainers = with maintainers; [ siddharthist ];
49   };