mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "dnsviz";
|
|
version = "0.11.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dnsviz";
|
|
repo = "dnsviz";
|
|
tag = "v${finalAttrs.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/
|
|
'';
|
|
homepage = "https://github.com/dnsviz/dnsviz";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ jojosch ];
|
|
};
|
|
})
|