python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / smbscan / default.nix
bloba3a2257c065c3ab746a18b794c5bc339f9bf9716
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "smbscan";
8   version = "unstable-2022-05-26";
9   format = "setuptools";
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   };