diff --git a/pkgs/by-name/xn/xnldorker/package.nix b/pkgs/by-name/xn/xnldorker/package.nix new file mode 100644 index 000000000000..44666da707b1 --- /dev/null +++ b/pkgs/by-name/xn/xnldorker/package.nix @@ -0,0 +1,53 @@ +{ + 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"; + }; +})