depot/pkgs/tools/security/coercer/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

44 lines
1 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "coercer";
version = "2.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "p0dalirius";
repo = "Coercer";
rev = "refs/tags/${version}";
hash = "sha256-WeaKToKYIB+jjTNIQvAUQQNb25TsNWALYZwIZuBjkPE=";
};
pythonRelaxDeps = [ "impacket" ];
build-system = with python3.pkgs; [ poetry-core ];
dependencies = with python3.pkgs; [
impacket
xlsxwriter
];
pythonImportsCheck = [ "coercer" ];
# this file runs into issues on case-insensitive filesystems
# ValueError: Both <...>/coercer and <...>/coercer.py exist
postPatch = ''
rm Coercer.py
'';
meta = with lib; {
description = "Tool to automatically coerce a Windows server";
homepage = "https://github.com/p0dalirius/Coercer";
changelog = "https://github.com/p0dalirius/Coercer/releases/tag/${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
mainProgram = "coercer";
};
}