Merge pull request #142255 from p-h/metasploit-fix-python-modules

metasploit: Fix python modules

authored by

Fabian Affolter and committed by
GitHub
54ef803b d7215a7c

+4
+4
pkgs/tools/security/metasploit/default.nix
··· 4 4 , makeWrapper 5 5 , ruby 6 6 , bundlerEnv 7 + , python3 7 8 }: 8 9 9 10 let ··· 24 25 }; 25 26 26 27 nativeBuildInputs = [ makeWrapper ]; 28 + buildInputs = [ (python3.withPackages (ps: [ ps.requests ])) ]; 27 29 28 30 dontPatchELF = true; # stay away from exploit executables 29 31 ··· 31 33 mkdir -p $out/{bin,share/msf} 32 34 33 35 cp -r * $out/share/msf 36 + 37 + grep -rl "^#\!.*python2$" $out/share/msf | xargs -d '\n' rm 34 38 35 39 ( 36 40 cd $out/share/msf/