1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 impacket,
6 netaddr,
7 poetry-core,
8 pypykatz,
9 pythonOlder,
10 rich,
11}:
12
13buildPythonPackage rec {
14 pname = "lsassy";
15 version = "3.1.11";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "Hackndo";
22 repo = "lsassy";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-boPFrmPqaHpezxXM3VM50i+n+n+gXkuwP4ErpMpN/AI=";
25 };
26
27 pythonRelaxDeps = [
28 "impacket"
29 "netaddr"
30 "rich"
31 ];
32
33
34 build-system = [ poetry-core ];
35
36 dependencies = [
37 impacket
38 netaddr
39 pypykatz
40 rich
41 ];
42
43 # Tests require an active domain controller
44 doCheck = false;
45
46 pythonImportsCheck = [ "lsassy" ];
47
48 meta = with lib; {
49 description = "Python module to extract data from Local Security Authority Subsystem Service (LSASS)";
50 homepage = "https://github.com/Hackndo/lsassy";
51 changelog = "https://github.com/Hackndo/lsassy/releases/tag/v${version}";
52 license = with licenses; [ mit ];
53 maintainers = with maintainers; [ fab ];
54 mainProgram = "lsassy";
55 };
56}