about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/aiodnsbrute/default.nix
blob: 77f03e4174f6b7dac14ecbe627bf133a60b61e6e (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
{ lib
, buildPythonApplication
, fetchFromGitHub
, aiodns
, click
, tqdm
, uvloop
}:

buildPythonApplication rec {
  pname = "aiodnsbrute";
  version = "0.3.2";

  src = fetchFromGitHub {
    owner = "blark";
    repo = pname;
    rev = "v${version}";
    sha256 = "0fs8544kx7vwvc97zpg4rs3lmvnb4vwika5g952rv3bfx4rv3bpg";
  };

  # https://github.com/blark/aiodnsbrute/pull/8
  prePatch = ''
    substituteInPlace setup.py --replace " 'asyncio', " ""
  '';

  propagatedBuildInputs = [
     aiodns
     click
     tqdm
     uvloop
  ];

  # no tests present
  doCheck = false;

  pythonImportsCheck = [ "aiodnsbrute.cli" ];

  meta = with lib; {
    description = "DNS brute force utility";
    homepage = "https://github.com/blark/aiodnsbrute";
    # https://github.com/blark/aiodnsbrute/issues/5
    license = with licenses; [ gpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
}