2023-04-28 08:08:07 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
authres,
|
2023-04-28 08:15:17 +00:00
|
|
|
buildPythonPackage,
|
2023-04-28 08:08:07 +00:00
|
|
|
dkimpy,
|
2023-04-28 08:15:17 +00:00
|
|
|
dnspython,
|
|
|
|
fetchFromGitHub,
|
2023-04-28 08:08:07 +00:00
|
|
|
publicsuffix2,
|
2023-04-28 08:15:17 +00:00
|
|
|
pytestCheckHook,
|
2024-01-25 20:17:29 +00:00
|
|
|
pythonOlder,
|
2023-08-25 16:49:23 +00:00
|
|
|
setuptools,
|
2019-12-16 18:14:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "authheaders";
|
2024-06-27 09:03:08 +00:00
|
|
|
version = "0.16.3";
|
2024-01-25 20:17:29 +00:00
|
|
|
pyproject = true;
|
2023-04-28 08:08:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-12-16 18:14:29 +00:00
|
|
|
|
2023-04-28 08:15:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValiMail";
|
|
|
|
repo = "authentication-headers";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-27 09:03:08 +00:00
|
|
|
hash = "sha256-BFMZpSJ4qCEL42xTiM/D5dkatxohiCrOWAkNZHFUhac=";
|
2019-12-16 18:14:29 +00:00
|
|
|
};
|
|
|
|
|
2024-06-27 09:05:11 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-25 20:17:29 +00:00
|
|
|
|
2024-06-27 09:05:11 +00:00
|
|
|
dependencies = [
|
2023-04-28 08:08:07 +00:00
|
|
|
authres
|
|
|
|
dnspython
|
|
|
|
dkimpy
|
|
|
|
publicsuffix2
|
2023-08-25 16:49:23 +00:00
|
|
|
setuptools
|
2023-04-28 08:08:07 +00:00
|
|
|
];
|
2019-12-16 18:14:29 +00:00
|
|
|
|
2023-04-28 08:15:17 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2023-04-28 08:09:26 +00:00
|
|
|
pythonImportsCheck = [ "authheaders" ];
|
|
|
|
|
2024-01-25 20:17:29 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test fails with timeout even if the resolv.conf hack is present
|
|
|
|
"test_authenticate_dmarc_psdsub"
|
|
|
|
];
|
|
|
|
|
2022-05-30 20:10:24 +00:00
|
|
|
meta = with lib; {
|
2019-12-16 18:14:29 +00:00
|
|
|
description = "Python library for the generation of email authentication headers";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ValiMail/authentication-headers";
|
2023-04-28 08:03:39 +00:00
|
|
|
changelog = "https://github.com/ValiMail/authentication-headers/blob${version}/CHANGES";
|
2022-05-30 20:10:24 +00:00
|
|
|
license = licenses.mit;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2024-06-27 09:05:11 +00:00
|
|
|
mainProgram = "dmarc-policy-find";
|
2019-12-16 18:14:29 +00:00
|
|
|
};
|
|
|
|
}
|