biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / erosmb / default.nix
blobf03e9a958de206e9b9268cf8ac0dc22a5df4108d
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "erosmb";
8   version = "0.1.5";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "viktor02";
13     repo = "EroSmb";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-9Zs5Z+3JiBiJkV9Ixl5pPmLv0dUT59CT0UkQDsmneWc=";
16   };
18   propagatedBuildInputs = with python3.pkgs; [
19     chardet
20     colorama
21     cryptography
22     impacket
23     ldap3
24     ldapdomaindump
25     pyasn1
26     setuptools
27     six
28   ];
30   # Project has no tests
31   doCheck = false;
33   doInstallCheck = true;
35   installCheckPhase = ''
36     runHook preInstallCheck
37     $out/bin/erosmb --help
38     runHook postInstallCheck
39   '';
41   meta = with lib; {
42     description = "SMB network scanner";
43     homepage = "https://github.com/viktor02/EroSmb";
44     changelog = "https://github.com/viktor02/EroSmb/releases/tag/v${version}";
45     license = with licenses; [ mit ];
46     maintainers = with maintainers; [ fab ];
47     mainProgram = "erosmb";
48   };