Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "dnsrecon"; 8 version = "1.1.4"; 9 format = "setuptools"; 10 11 src = fetchFromGitHub { 12 owner = "darkoperator"; 13 repo = pname; 14 rev = version; 15 hash = "sha256-DtyYYNtv0Zk8103NN+vlnr3Etv0bAZ6+A2CXeZZgiUg="; 16 }; 17 18 propagatedBuildInputs = with python3.pkgs; [ 19 dnspython 20 netaddr 21 lxml 22 setuptools 23 ]; 24 25 preFixup = '' 26 # Install wordlists, etc. 27 install -vD namelist.txt subdomains-*.txt snoop.txt -t $out/share/wordlists 28 ''; 29 30 # Tests require access to /etc/resolv.conf 31 doCheck = false; 32 33 pythonImportsCheck = [ 34 "dnsrecon" 35 ]; 36 37 meta = with lib; { 38 description = "DNS Enumeration script"; 39 homepage = "https://github.com/darkoperator/dnsrecon"; 40 license = licenses.gpl2Only; 41 maintainers = with maintainers; [ c0bw3b fab ]; 42 }; 43}