conkeyscan: use finalAttrs pattern

This commit is contained in:
mana-byte
2026-03-09 20:29:17 +01:00
parent 18ba36899b
commit 2c225d7e3e
+5 -5
View File
@@ -4,7 +4,7 @@
fetchFromGitHub,
fetchpatch,
}:
python3.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "conkeyscan";
version = "1.1.0";
pyproject = true;
@@ -12,7 +12,7 @@ python3.pkgs.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "CompassSecurity";
repo = "conkeyscan";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-xYCms+Su7FmaG7KVHZpzfD/wx9Gepz11t8dEK/YDfvI=";
};
@@ -27,7 +27,7 @@ python3.pkgs.buildPythonApplication rec {
postPatch = ''
substituteInPlace setup.py \
--replace-fail "{{VERSION_PLACEHOLDER}}" "${version}"
--replace-fail "{{VERSION_PLACEHOLDER}}" "${finalAttrs.version}"
'';
build-system = with python3.pkgs; [ setuptools ];
@@ -51,9 +51,9 @@ python3.pkgs.buildPythonApplication rec {
meta = {
description = "Tool to scan Confluence for keywords";
homepage = "https://github.com/CompassSecurity/conkeyscan";
changelog = "https://github.com/CompassSecurity/conkeyscan/releases/tag/v${version}";
changelog = "https://github.com/CompassSecurity/conkeyscan/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "conkeyscan";
};
}
})