2023-11-04 20:50:14 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, git
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gato";
|
2024-01-22 03:08:32 +00:00
|
|
|
version = "1.6";
|
2023-11-04 20:50:14 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praetorian-inc";
|
|
|
|
repo = "gato";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-01-22 03:08:32 +00:00
|
|
|
hash = "sha256-vXQFgP0KDWo1VWe7tMGCB2yEYlr/1KMXsiNupBVLBqc=";
|
2023-11-04 20:50:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "--cov=gato" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
colorama
|
|
|
|
cryptography
|
|
|
|
packaging
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
|
|
git
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"gato"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GitHub Self-Hosted Runner Enumeration and Attack Tool";
|
|
|
|
homepage = "https://github.com/praetorian-inc/gato";
|
|
|
|
changelog = "https://github.com/praetorian-inc/gato/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
mainProgram = "gato";
|
|
|
|
};
|
|
|
|
}
|