python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / email-validator / default.nix
blob78463781f75dab62a1f844c78efebba902b8e40d
2   lib,
3   buildPythonPackage,
4   dnspython,
5   fetchPypi,
6   idna,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "email-validator";
13   version = "2.2.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     pname = "email_validator";
20     inherit version;
21     hash = "sha256-y2kPNExhenFPIuZq53FEWhzrRoIRUt+OFlxfmjZFgrc=";
22   };
24   dependencies = [
25     dnspython
26     idna
27   ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   disabledTestPaths = [
32     # dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf
33     "tests/test_deliverability.py"
34     "tests/test_main.py"
35   ];
37   pythonImportsCheck = [ "email_validator" ];
39   meta = with lib; {
40     description = "Email syntax and deliverability validation library";
41     mainProgram = "email_validator";
42     homepage = "https://github.com/JoshData/python-email-validator";
43     changelog = "https://github.com/JoshData/python-email-validator/releases/tag/v${version}";
44     license = licenses.cc0;
45     maintainers = with maintainers; [ siddharthist ];
46   };