python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / crackmapexec / default.nix
blob9646f3a7caf2f2dba69c4befce7e5dc9501f7f97
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "crackmapexec";
8   version = "5.3.0";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "byt3bl33d3r";
13     repo = "CrackMapExec";
14     rev = "v${version}";
15     hash = "sha256-wPS1PCvR9Ffp0r9lZZkFATt+i+eR5ap16HzLWDZbJKI=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19     poetry-core
20     pythonRelaxDepsHook
21   ];
23   propagatedBuildInputs = with python3.pkgs; [
24     aioconsole
25     aardwolf
26     beautifulsoup4
27     dsinternals
28     impacket
29     lsassy
30     msgpack
31     neo4j
32     paramiko
33     pylnk3
34     pypsrp
35     pywerview
36     requests
37     requests_ntlm
38     termcolor
39     terminaltables
40     xmltodict
41   ];
43   postPatch = ''
44     substituteInPlace pyproject.toml \
45       --replace '{ git = "https://github.com/mpgn/impacket.git", branch = "master" }' '"x"'
46   '';
48   pythonRelaxDeps = true;
50   # Project has no tests
51   doCheck = false;
53   pythonImportsCheck = [
54     "cme"
55   ];
57   meta = with lib; {
58     description = "Tool for pentesting networks";
59     homepage = "https://github.com/byt3bl33d3r/CrackMapExec";
60     license = with licenses; [ bsd2 ];
61     maintainers = with maintainers; [ fab ];
62     mainProgram = "cme";
63   };