mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
712069957d
Diff: https://github.com/JoshData/python-email-validator/compare/refs/tags/v1.3.0...v1.3.1 Changelog: https://github.com/JoshData/python-email-validator/releases/tag/v1.3.1
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dnspython
|
|
, fetchFromGitHub
|
|
, idna
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "email-validator";
|
|
version = "1.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JoshData";
|
|
repo = "python-${pname}";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-JW6Yrotm3HjUOUtNFxRorkrJKjzuwIXwjpUuMWEyLV0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dnspython
|
|
idna
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# fails with dns.resolver.NoResolverConfiguration due to network sandboxing
|
|
"test_deliverability_no_records"
|
|
"test_deliverability_found"
|
|
"test_deliverability_fails"
|
|
"test_deliverability_dns_timeout"
|
|
"test_email_example_reserved_domain"
|
|
"test_main_single_good_input"
|
|
"test_main_multi_input"
|
|
"test_main_input_shim"
|
|
"test_validate_email__with_caching_resolver"
|
|
"test_validate_email__with_configured_resolver"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|