Files
nixpkgs/pkgs/by-name/dn/dnsviz/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.2 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "dnsviz";
version = "0.11.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "dnsviz";
repo = "dnsviz";
tag = "v${version}";
hash = "sha256-JlPikEvRPFhHcTyRJ2ZgmQOrrc6qzhbAO6+NtiN+Wqo=";
};
patches = [
# override DNSVIZ_INSTALL_PREFIX with $out
./fix-path.patch
];
postPatch = ''
substituteInPlace dnsviz/config.py.in \
--replace-fail '@out@' $out
'';
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
dnspython
m2crypto
pygraphviz
];
# Tests require network connection and /etc/resolv.conf
doCheck = false;
pythonImportsCheck = [ "dnsviz" ];
meta = {
description = "Tool suite for analyzing and visualizing DNS and DNSSEC behavior";
mainProgram = "dnsviz";
longDescription = ''
DNSViz is a tool suite for analysis and visualization of Domain Name System (DNS) behavior,
including its security extensions (DNSSEC).
This tool suite powers the Web-based analysis available at https://dnsviz.net/
'';
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ jojosch ];
};
}