depot/third_party/nixpkgs/pkgs/tools/security/coercer/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

42 lines
907 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "coercer";
version = "1.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "p0dalirius";
repo = "Coercer";
rev = "refs/tags/${version}";
hash = "sha256-xftYnwu6uUTvJTZU9E7wvdgBxqa8xy83K5GOlgNSCvc=";
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
impacket
];
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";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ fab ];
};
}