depot/pkgs/by-name/co/conkeyscan/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

50 lines
1.1 KiB
Nix

{
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";
};
}