From 5b738b362b0ada96ee348c5e3672bfcac640885c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 30 Mar 2024 20:42:49 +0100 Subject: [PATCH] python311Packages.lsassy: refactor --- .../python-modules/lsassy/default.nix | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/lsassy/default.nix b/pkgs/development/python-modules/lsassy/default.nix index dea8c8d194aa..9ab583acbeeb 100644 --- a/pkgs/development/python-modules/lsassy/default.nix +++ b/pkgs/development/python-modules/lsassy/default.nix @@ -3,26 +3,42 @@ , fetchFromGitHub , impacket , netaddr -, pythonOlder +, poetry-core , pypykatz +, pythonOlder +, pythonRelaxDepsHook , rich }: buildPythonPackage rec { pname = "lsassy"; version = "3.1.9"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Hackndo"; - repo = pname; + repo = "lsassy"; rev = "refs/tags/v${version}"; hash = "sha256-VGLSVv/+UpgeSTHoOTjEfQSAYfXA3bAI+yKjcKBI1Z4="; }; - propagatedBuildInputs = [ + pythonRelaxDeps = [ + "impacket" + "netaddr" + "rich" + ]; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + build-system = [ + poetry-core + ]; + + dependencies = [ impacket netaddr pypykatz @@ -38,10 +54,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python module to extract data from Local Security Authority Subsystem Service (LSASS)"; - mainProgram = "lsassy"; homepage = "https://github.com/Hackndo/lsassy"; changelog = "https://github.com/Hackndo/lsassy/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; + mainProgram = "lsassy"; }; }