evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sm / smbscan / package.nix
blobea2a99b64bb0dfca520f9e15f5f1d439d1b045ce
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "smbscan";
8   version = "unstable-2022-05-26";
9   format = "other";
11   src = fetchFromGitHub {
12     owner = "jeffhacks";
13     repo = pname;
14     rev = "1b19d6040cab279b97bf002934bf6f8b34d6a8b4";
15     hash = "sha256-cL1mnyzIbHB/X4c7sZKVv295LNnjqwR8TZBMe9s/peg=";
16   };
18   propagatedBuildInputs = with python3.pkgs; [
19     impacket
20     python-slugify
21   ];
23   installPhase = ''
24     runHook preInstall
26     install -vD smbscan.py $out/bin/smbscan
27     install -vd $out/${python3.sitePackages}/
28     cp {scan_internals,scan,setup,local_logging,arg_parser}.py $out/${python3.sitePackages}
29     install -vd $out/${python3.sitePackages}/wordlists/
30     cp wordlists/pattern* $out/${python3.sitePackages}/wordlists
32     runHook postInstall
33   '';
35   meta = with lib; {
36     description = "Tool to enumerate file shares";
37     homepage = "https://github.com/jeffhacks/smbscan";
38     license = with licenses; [ gpl3Only ];
39     maintainers = with maintainers; [ fab ];
40     mainProgram = "smbscan";
41   };