From 80240703e2b8b4b45f2e4a98ead29de4603b0949 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 18 Jun 2024 15:32:34 +0200 Subject: [PATCH] conkeyscan: init at 1.0.0 Tool to scan Confluence for keywords https://github.com/CompassSecurity/conkeyscan --- pkgs/by-name/co/conkeyscan/package.nix | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pkgs/by-name/co/conkeyscan/package.nix diff --git a/pkgs/by-name/co/conkeyscan/package.nix b/pkgs/by-name/co/conkeyscan/package.nix new file mode 100644 index 000000000000000..bb26e28d781f3f4 --- /dev/null +++ b/pkgs/by-name/co/conkeyscan/package.nix @@ -0,0 +1,54 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "conkeyscan"; + version = "1.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "CompassSecurity"; + repo = "conkeyscan"; + rev = "refs/tags/${version}"; + hash = "sha256-F5lYpETzv03O9I4vi4qnLgQLvBlv8bLtJQArxliO8JI="; + }; + + postPatch = '' + # + substituteInPlace setup.py \ + --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}" + ''; + + + build-system = with python3.pkgs; [ + setuptools + ]; + + dependencies = with python3.pkgs; [ + atlassian-python-api + beautifulsoup4 + clize + loguru + pysocks + random-user-agent + readchar + requests-ratelimiter + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "conkeyscan" ]; + + meta = with lib; { + description = "Tool to scan Confluence for keywords"; + homepage = "https://github.com/CompassSecurity/conkeyscan"; + changelog = "https://github.com/CompassSecurity/conkeyscan/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + mainProgram = "conkeyscan"; + }; +}