2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
authres,
|
|
|
|
buildPythonPackage,
|
|
|
|
dkimpy,
|
|
|
|
dnspython,
|
|
|
|
fetchFromGitHub,
|
|
|
|
publicsuffix2,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "authheaders";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.16.2";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValiMail";
|
|
|
|
repo = "authentication-headers";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-/vxUUSWwysYQzcy2AmkF4f8R59FHRnBfFlPRpfM9e5o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
authres
|
|
|
|
dnspython
|
|
|
|
dkimpy
|
|
|
|
publicsuffix2
|
2023-10-09 19:29:22 +00:00
|
|
|
setuptools
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "authheaders" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test fails with timeout even if the resolv.conf hack is present
|
|
|
|
"test_authenticate_dmarc_psdsub"
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python library for the generation of email authentication headers";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dmarc-policy-find";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ValiMail/authentication-headers";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/ValiMail/authentication-headers/blob${version}/CHANGES";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|