Files
nixpkgs/pkgs/by-name/co/conkeyscan/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.5 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
}:
let
python = python3.override {
self = python3;
packageOverrides = self: super: {
pyrate-limiter = super.pyrate-limiter.overridePythonAttrs (oldAttrs: rec {
version = "2.10.0";
src = fetchFromGitHub {
inherit (oldAttrs.src) owner repo;
tag = "v${version}";
hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0=";
};
doCheck = false;
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "conkeyscan";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CompassSecurity";
repo = "conkeyscan";
tag = "v${version}";
hash = "sha256-xYCms+Su7FmaG7KVHZpzfD/wx9Gepz11t8dEK/YDfvI=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "{{VERSION_PLACEHOLDER}}" "${version}"
'';
build-system = with python.pkgs; [ setuptools ];
dependencies = with python.pkgs; [
atlassian-python-api
beautifulsoup4
clize
loguru
pysocks
random-user-agent
readchar
requests-ratelimiter
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "conkeyscan" ];
meta = {
description = "Tool to scan Confluence for keywords";
homepage = "https://github.com/CompassSecurity/conkeyscan";
changelog = "https://github.com/CompassSecurity/conkeyscan/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "conkeyscan";
};
}