From 7c3a458ef50a7646e77a05ae2ae5da0a95f7d6eb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 8 Aug 2022 12:23:27 +0200 Subject: [PATCH] crackmapexec: 5.2.2 -> 5.3.0 --- pkgs/tools/security/crackmapexec/default.nix | 22 +++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/pkgs/tools/security/crackmapexec/default.nix b/pkgs/tools/security/crackmapexec/default.nix index f88563498b23..9646f3a7caf2 100644 --- a/pkgs/tools/security/crackmapexec/default.nix +++ b/pkgs/tools/security/crackmapexec/default.nix @@ -1,19 +1,18 @@ { lib , fetchFromGitHub -, fetchpatch , python3 }: python3.pkgs.buildPythonApplication rec { pname = "crackmapexec"; - version = "5.2.2"; + version = "5.3.0"; format = "pyproject"; src = fetchFromGitHub { owner = "byt3bl33d3r"; repo = "CrackMapExec"; rev = "v${version}"; - hash = "sha256-IgD8RjwVEoEXmnHU3DR3wzUdJDWIbFw9sES5qYg30a8="; + hash = "sha256-wPS1PCvR9Ffp0r9lZZkFATt+i+eR5ap16HzLWDZbJKI="; }; nativeBuildInputs = with python3.pkgs; [ @@ -23,6 +22,7 @@ python3.pkgs.buildPythonApplication rec { propagatedBuildInputs = with python3.pkgs; [ aioconsole + aardwolf beautifulsoup4 dsinternals impacket @@ -40,21 +40,13 @@ python3.pkgs.buildPythonApplication rec { xmltodict ]; - patches = [ - # Switch to poetry-core, https://github.com/byt3bl33d3r/CrackMapExec/pull/580 - (fetchpatch { - name = "switch-to-poetry-core.patch"; - url = "https://github.com/byt3bl33d3r/CrackMapExec/commit/e5c6c2b5c7110035b34ea7a080defa6d42d21dd4.patch"; - hash = "sha256-5SpoQD+uSYLM6Rdq0/NTbyEv4RsBUuawNNsknS71I9M="; - }) - ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace '{ git = "https://github.com/mpgn/impacket.git", branch = "master" }' '"x"' + ''; pythonRelaxDeps = true; - pythonRemoveDeps = [ - "bs4" - ]; - # Project has no tests doCheck = false;