depot/pkgs/tools/security/octosuite/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

50 lines
1 KiB
Nix

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "octosuite";
version = "3.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bellingcat";
repo = "octosuite";
rev = "refs/tags/${version}";
hash = "sha256-bgTAGIJbxOa8q8lMsWa8dHwNZ/jXiWGQOp921sd2Vdo=";
};
postPatch = ''
# pyreadline3 is Windows-only
substituteInPlace pyproject.toml \
--replace-fail '"pyreadline3",' ""
'';
build-system = with python3.pkgs; [
setuptools
setuptools-scm
];
dependencies = with python3.pkgs; [
psutil
requests
rich
];
pythonImportsCheck = [
"octosuite"
];
# Project has no tests
doCheck = false;
meta = with lib; {
description = "Advanced Github OSINT framework";
mainProgram = "octosuite";
homepage = "https://github.com/bellingcat/octosuite";
changelog = "https://github.com/bellingcat/octosuite/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}