Unverified Commit bd495eda authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #219514 from fabaff/aiodnsbrute-call

aiodnsbrute: use python3.pkgs 
parents ef62869d 8fc7ae71
Loading
Loading
Loading
Loading
+15 −21
Original line number Diff line number Diff line
{ lib
, buildPythonApplication
, fetchFromGitHub
, aiodns
, click
, tqdm
, uvloop
, python3
}:

buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
  pname = "aiodnsbrute";
  version = "0.3.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "blark";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-cEpk71VoQJZfKeAZummkk7yjtXKSMndgo0VleYiMlWE=";
    rev = "refs/tags/v${version}";
    hash = "sha256-cEpk71VoQJZfKeAZummkk7yjtXKSMndgo0VleYiMlWE=";
  };

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

  propagatedBuildInputs = [
  propagatedBuildInputs = with python3.pkgs; [
    aiodns
    click
    tqdm
    uvloop
  ];

  # no tests present
  # Project no tests
  doCheck = false;

  pythonImportsCheck = [ "aiodnsbrute.cli" ];
  pythonImportsCheck = [
    "aiodnsbrute.cli"
  ];

  meta = with lib; {
    description = "DNS brute force utility";
    homepage = "https://github.com/blark/aiodnsbrute";
    # https://github.com/blark/aiodnsbrute/issues/5
    changelog = "https://github.com/blark/aiodnsbrute/releases/tag/v${version}";
    license = with licenses; [ gpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
+1 −1
Original line number Diff line number Diff line
@@ -1362,7 +1362,7 @@ with pkgs;
  aioblescan = with python3Packages; toPythonApplication aioblescan;
  aiodnsbrute = python3Packages.callPackage ../tools/security/aiodnsbrute { };
  aiodnsbrute = callPackage ../tools/security/aiodnsbrute { };
  aircrack-ng = callPackage ../tools/networking/aircrack-ng { };