about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/erosmb/default.nix
blob: c0b4586c3524e07b7afaf12a2706718cf922cdd6 (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
38
39
40
41
42
43
44
45
46
47
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "erosmb";
  version = "0.1.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "viktor02";
    repo = "EroSmb";
    rev = "v${version}";
    hash = "sha256-d7iSl7weIHWXDnMYQKxafVd5JrZ0fnuWRDpEirBVdcg=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    chardet
    colorama
    cryptography
    impacket
    ldap3
    ldapdomaindump
    pyasn1
    setuptools
    six
  ];

  # Project has no tests
  doCheck = false;

  doInstallCheck = true;

  installCheckPhase = ''
    runHook preInstallCheck
    $out/bin/erosmb --help
    runHook postInstallCheck
  '';

  meta = with lib; {
    description = "SMB network scanner";
    homepage = "https://github.com/viktor02/EroSmb";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}