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

xnldorker: init at 4.1 (#497846)

parents 99b349c9 3b60e6e6
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  python3,
  fetchFromGitHub,
  writableTmpDirAsHomeHook,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "xnldorker";
  version = "4.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "xnl-h4ck3r";
    repo = "xnldorker";
    tag = "v${finalAttrs.version}";
    hash = "sha256-k0nTY3n5g7cNsVVWDcdFpCjQVJCErPp/21iz2R/TTGs=";
  };

  pythonRemoveDeps = [
    # https://github.com/xnl-h4ck3r/xnldorker/pull/11
    "asyncio"
  ];

  build-system = with python3.pkgs; [ setuptools ];

  nativeBuildInputs = [ writableTmpDirAsHomeHook ];

  dependencies = with python3.pkgs; [
    beautifulsoup4
    playwright
    pyyaml
    requests
    termcolor
    tldextract
    urllib3
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "xnldorker" ];

  meta = {
    description = "Gather results of dorks across a number of search engines";
    homepage = "https://github.com/xnl-h4ck3r/xnldorker";
    changelog = "https://github.com/xnl-h4ck3r/xnldorker/blob/${finalAttrs.src.rev}/CHANGELOG.md";
    # https://github.com/xnl-h4ck3r/xnldorker/issues/10
    license = lib.licenses.unfree;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "xnldorker";
  };
})