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