Files
nixpkgs/pkgs/development/python-modules/authheaders/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.1 KiB
Nix

{
lib,
authres,
buildPythonPackage,
dkimpy,
dnspython,
fetchFromGitHub,
publicsuffix2,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "authheaders";
version = "0.16.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ValiMail";
repo = "authentication-headers";
tag = version;
hash = "sha256-BFMZpSJ4qCEL42xTiM/D5dkatxohiCrOWAkNZHFUhac=";
};
build-system = [ setuptools ];
dependencies = [
authres
dnspython
dkimpy
publicsuffix2
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "authheaders" ];
disabledTests = [
# Test fails with timeout even if the resolv.conf hack is present
"test_authenticate_dmarc_psdsub"
];
meta = {
description = "Python library for the generation of email authentication headers";
homepage = "https://github.com/ValiMail/authentication-headers";
changelog = "https://github.com/ValiMail/authentication-headers/blob${version}/CHANGES";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "dmarc-policy-find";
};
}