Commit 5b738b36 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.lsassy: refactor

parent d3f89238
Loading
Loading
Loading
Loading
+21 −5
Original line number Diff line number Diff line
@@ -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";
  };
}