nixpkgs/pkgs/by-name/co/coercer/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.0 KiB
Nix
Raw Normal View History

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