Files
nixpkgs/pkgs/by-name/ey/eyewitness/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

77 lines
1.5 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
xvfb-run,
firefox-esr,
geckodriver,
makeWrapper,
}:
python3Packages.buildPythonApplication rec {
pname = "eye-witness";
version = "20230525.1";
format = "other";
src = fetchFromGitHub {
owner = "redsiege";
repo = "EyeWitness";
rev = "v${version}";
hash = "sha256-nSPpPbwqagc5EadQ4AHgLhjQ0kDjmbdcwE/PL5FDL4I=";
};
build-system =
with python3Packages;
[
setuptools
]
++ [
makeWrapper
];
dependencies =
with python3Packages;
[
selenium
fuzzywuzzy
pyvirtualdisplay
pylev
netaddr
pydevtool
]
++ [
firefox-esr
xvfb-run
geckodriver
];
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/eyewitness}
cp -R * $out/share/eyewitness
runHook postInstall
'';
fixupPhase = ''
runHook preFixup
makeWrapper "${python3Packages.python.interpreter}" "$out/bin/eyewitness" \
--set PYTHONPATH "$PYTHONPATH" \
--add-flags "$out/share/eyewitness/Python/EyeWitness.py"
runHook postFixup
'';
meta = with lib; {
description = "Take screenshots of websites, and identify admin interfaces";
homepage = "https://github.com/redsiege/EyeWitness";
changelog = "https://github.com/redsiege/EyeWitness/blob/${src.rev}/CHANGELOG";
license = licenses.gpl3Only;
maintainers = with maintainers; [ tochiaha ];
mainProgram = "eye-witness";
platforms = platforms.all;
};
}