about summary refs log tree commit diff
path: root/pkgs/by-name/co/conkeyscan/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/co/conkeyscan/package.nix')
-rw-r--r--pkgs/by-name/co/conkeyscan/package.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/co/conkeyscan/package.nix b/pkgs/by-name/co/conkeyscan/package.nix
new file mode 100644
index 0000000000000..8b95916046da5
--- /dev/null
+++ b/pkgs/by-name/co/conkeyscan/package.nix
@@ -0,0 +1,50 @@
+{
+  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";
+  };
+}