1{
2 buildPythonApplication,
3 fetchFromGitHub,
4 dnslib,
5 lib,
6}:
7
8buildPythonApplication {
9 pname = "dnschef";
10 version = "0.4";
11
12 src = fetchFromGitHub {
13 owner = "iphelix";
14 repo = "dnschef";
15 rev = "a395411ae1f5c262d0b80d06a45a445f696f3243";
16 sha256 = "0ll3hw6w5zhzyqc2p3c9443gcp12sx6ddybg5rjpl01dh3svrk1q";
17 };
18
19 format = "other";
20 installPhase = ''
21 install -D ./dnschef.py $out/bin/dnschef
22 '';
23
24 propagatedBuildInputs = [ dnslib ];
25
26 meta = with lib; {
27 homepage = "https://github.com/iphelix/dnschef";
28 description = "Highly configurable DNS proxy for penetration testers and malware analysts";
29 mainProgram = "dnschef";
30 license = licenses.bsd3;
31 maintainers = [ maintainers.gfrascadorio ];
32 };
33}