1 { lib, python3Packages, fetchFromGitHub }:
3 python3Packages.buildPythonApplication rec {
8 src = fetchFromGitHub {
12 sha256 = "02z1xj72bq35dilr4b6njry4kixz6j2a3ag02nla98q0fvgmgnvy";
18 propagatedBuildInputs = with python3Packages; [ requests urllib3 tld ];
21 mkdir -p "$out"/{bin,share/photon}
22 cp -R photon.py core plugins $out/share/photon
24 makeWrapper ${python3Packages.python.interpreter} $out/bin/photon \
25 --set PYTHONPATH "$PYTHONPATH:$out/share/photon" \
26 --add-flags "-O $out/share/photon/photon.py"
30 description = "Lightning fast web crawler which extracts URLs, files, intel & endpoints from a target";
31 homepage = "https://github.com/s0md3v/Photon";
32 license = licenses.gpl3;
34 mainProgram = "photon";