1{ lib
2, authres
3, buildPythonPackage
4, dkimpy
5, dnspython
6, fetchFromGitHub
7, publicsuffix2
8, pythonOlder
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "authheaders";
14 version = "0.15.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "ValiMail";
21 repo = "authentication-headers";
22 rev = "refs/tags/${version}";
23 hash = "sha256-vtLt7JUdLF0gBWgMzP65UAR6A9BnTech5n0alFErcSQ=";
24 };
25
26 propagatedBuildInputs = [
27 authres
28 dnspython
29 dkimpy
30 publicsuffix2
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "authheaders"
39 ];
40
41 meta = with lib; {
42 description = "Python library for the generation of email authentication headers";
43 homepage = "https://github.com/ValiMail/authentication-headers";
44 changelog = "https://github.com/ValiMail/authentication-headers/blob${version}/CHANGES";
45 license = licenses.mit;
46 maintainers = with maintainers; [ ];
47 };
48}