Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "ec2stepshell";
|
|
version = "0-unstable-2023-04-07";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "saw-your-packet";
|
|
repo = "EC2StepShell";
|
|
rev = "ab1298fa7f2650de711e86e870a693dcce0e1935";
|
|
hash = "sha256-zy33CgGwa2pBYouqaJ1LM6uRIh3Q1uxi2zNXpDNPsuQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# https://github.com/saw-your-packet/EC2StepShell/pull/1
|
|
substituteInPlace pyproject.toml \
|
|
--replace "realpython" "ec2stepshell"
|
|
'';
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
boto3
|
|
colorama
|
|
pyfiglet
|
|
termcolor
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ec2stepshell"
|
|
];
|
|
|
|
meta = {
|
|
description = "AWS post-exploitation tool";
|
|
mainProgram = "ec2stepshell";
|
|
homepage = "https://github.com/saw-your-packet/EC2StepShell";
|
|
changelog = "https://github.com/saw-your-packet/EC2StepShell/blob/${version}/CHANGELOG.txt";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|