mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-17 10:43:53 +00:00
Diff: https://github.com/domainaware/checkdmarc/compare/5.16.2...5.17.0 Changelog: https://github.com/domainaware/checkdmarc/blob/5.17.0/CHANGELOG.md
82 lines
1.6 KiB
Nix
82 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
dnspython,
|
|
expiringdict,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
importlib-resources,
|
|
pem,
|
|
publicsuffixlist,
|
|
pyleri,
|
|
pyopenssl,
|
|
pytestCheckHook,
|
|
requests,
|
|
timeout-decorator,
|
|
xmltodict,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "checkdmarc";
|
|
version = "5.17.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "domainaware";
|
|
repo = "checkdmarc";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-smKilbk+91da1Jh/e+eG6rP/YSCwS499qk3qHFQWH3A=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"cryptography"
|
|
"xmltodict"
|
|
];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
cryptography
|
|
dnspython
|
|
expiringdict
|
|
importlib-resources
|
|
pem
|
|
publicsuffixlist
|
|
pyleri
|
|
pyopenssl
|
|
requests
|
|
timeout-decorator
|
|
xmltodict
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "checkdmarc" ];
|
|
|
|
disabledTests = [
|
|
# Tests require network access
|
|
"testBIMI"
|
|
"testDMARCPctLessThan100Warning"
|
|
"testSPFMissingARecord"
|
|
"testSPFMissingMXRecord"
|
|
"testSplitSPFRecord"
|
|
"testTooManySPFDNSLookups"
|
|
"testTooManySPFVoidDNSLookups"
|
|
"testDNSSEC"
|
|
"testDnssecFalseWhenNoKey"
|
|
"testGetDnskeyCache"
|
|
"testIncludeMissingSPF"
|
|
"testKnownGood"
|
|
];
|
|
|
|
meta = {
|
|
description = "Parser for SPF and DMARC DNS records";
|
|
homepage = "https://github.com/domainaware/checkdmarc";
|
|
changelog = "https://github.com/domainaware/checkdmarc/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "checkdmarc";
|
|
};
|
|
})
|