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