Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / ga / gato / package.nix
blob655b60b2b8390c322e739374926b25ff04a9a266
1 { lib
2 , python3
3 , git
4 , fetchFromGitHub
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "gato";
9   version = "1.6";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "praetorian-inc";
14     repo = "gato";
15     rev = "refs/tags/${version}";
16     hash = "sha256-vXQFgP0KDWo1VWe7tMGCB2yEYlr/1KMXsiNupBVLBqc=";
17   };
19   postPatch = ''
20     substituteInPlace pyproject.toml \
21       --replace "--cov=gato" ""
22   '';
24   nativeBuildInputs = with python3.pkgs; [
25     setuptools
26     wheel
27   ];
29   propagatedBuildInputs = with python3.pkgs; [
30     colorama
31     cryptography
32     packaging
33     pyyaml
34     requests
35   ];
37   nativeCheckInputs = with python3.pkgs; [
38     git
39     pytestCheckHook
40   ];
42   pythonImportsCheck = [
43     "gato"
44   ];
46   meta = with lib; {
47     description = "GitHub Self-Hosted Runner Enumeration and Attack Tool";
48     homepage = "https://github.com/praetorian-inc/gato";
49     changelog = "https://github.com/praetorian-inc/gato/releases/tag/${version}";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ fab ];
52     mainProgram = "gato";
53   };