2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "coercer";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.4.3";
|
2022-09-22 12:36:57 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p0dalirius";
|
|
|
|
repo = "Coercer";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-WeaKToKYIB+jjTNIQvAUQQNb25TsNWALYZwIZuBjkPE=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"impacket"
|
2022-09-22 12:36:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
impacket
|
2024-01-13 08:15:51 +00:00
|
|
|
xlsxwriter
|
2022-09-22 12:36:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"coercer"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
# this file runs into issues on case-insensitive filesystems
|
|
|
|
# ValueError: Both <...>/coercer and <...>/coercer.py exist
|
|
|
|
postPatch = ''
|
|
|
|
rm Coercer.py
|
|
|
|
'';
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|