dnsviz: init at 0.9.2

This commit is contained in:
Johannes Schleifenbaum
2021-03-07 19:01:04 +01:00
parent 000387627d
commit 288f4a6173
3 changed files with 71 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, dnspython
, m2crypto
, pygraphviz
}:
buildPythonApplication rec {
pname = "dnsviz";
version = "0.9.2";
src = fetchFromGitHub {
owner = "dnsviz";
repo = "dnsviz";
rev = "v${version}";
sha256 = "sha256-tIxjlNtncZJSdfQelIR9fTohBDkyC0+YwEcs2gNfKec=";
};
patches = [
# override DNSVIZ_INSTALL_PREFIX with $out
./fix-path.patch
];
propagatedBuildInputs = [
dnspython
m2crypto
pygraphviz
];
postPatch = ''
substituteInPlace dnsviz/config.py.in --replace '@out@' $out
'';
# Tests require network connection and /etc/resolv.conf
doCheck = false;
pythonImportsCheck = [ "dnsviz" ];
meta = with lib; {
description = "Tool suite for analyzing and visualizing DNS and DNSSEC behavior";
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 = licenses.gpl2Plus;
maintainers = with maintainers; [ jojosch ];
};
}