about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/lsassy/default.nix
blob: 6b1d5ec2bb4c11bcab281d33401e53ed0e8961d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, impacket
, netaddr
, pypykatz
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "lsassy";
  version = "2.1.3";

  src = fetchFromGitHub {
    owner = "Hackndo";
    repo = pname;
    rev = "v${version}";
    sha256 = "1zig34ymc1h18gjc2ji0w0711im5sm9xm6nydc01c13yfpvvj1rh";
  };

  propagatedBuildInputs = [
    impacket
    netaddr
    pypykatz
  ];

  # Tests require an active domain controller
  doCheck = false;
  pythonImportsCheck = [ "lsassy" ];

  meta = with lib; {
    description = "Python module to extract data from Local Security Authority Subsystem Service (LSASS)";
    homepage = "https://github.com/Hackndo/lsassy";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}