mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
abdf5dc772
It is is now provided automatically, when `pythonRelaxDeps` or `pythonRemoveDeps` is defined through `mk-python-derivation`.
49 lines
996 B
Nix
49 lines
996 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "coercer";
|
|
version = "2.4.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "p0dalirius";
|
|
repo = "Coercer";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-WeaKToKYIB+jjTNIQvAUQQNb25TsNWALYZwIZuBjkPE=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
poetry-core
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"impacket"
|
|
];
|
|
|
|
propagatedBuildInputs = 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";
|
|
mainProgram = "coercer";
|
|
homepage = "https://github.com/p0dalirius/Coercer";
|
|
license = with licenses; [ gpl2Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|