mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
commit
75fe87b130
54
pkgs/by-name/ga/gato/package.nix
Normal file
54
pkgs/by-name/ga/gato/package.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user