about summary refs log tree commit diff
path: root/pkgs/by-name/ga
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-11-04 21:50:14 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2023-11-04 21:50:14 +0100
commitb43037bc94b9df18bcd4162375f242148bae9060 (patch)
treea80121db424a4f91cc2139244412e8a7f627e806 /pkgs/by-name/ga
parent03f045505106599ccd9a7b3e6ca2efd8799568ab (diff)
gato: init at 1.5
GitHub Self-Hosted Runner Enumeration and Attack Tool

https://github.com/praetorian-inc/gato
Diffstat (limited to 'pkgs/by-name/ga')
-rw-r--r--pkgs/by-name/ga/gato/package.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/by-name/ga/gato/package.nix b/pkgs/by-name/ga/gato/package.nix
new file mode 100644
index 0000000000000..38297c71dc18d
--- /dev/null
+++ b/pkgs/by-name/ga/gato/package.nix
@@ -0,0 +1,54 @@
+{ lib
+, python3
+, git
+, fetchFromGitHub
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "gato";
+  version = "1.5";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "praetorian-inc";
+    repo = "gato";
+    rev = "refs/tags/${version}";
+    hash = "sha256-M9ONeLjEKQD5Kys7OriM34dEBWDKW3qrBk9lu2TitGE=";
+  };
+
+  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";
+  };
+}