python3Packages.prowlpy: use finalAttrs

This commit is contained in:
Robert Schütz
2026-05-21 08:28:24 -07:00
parent 782273bd1d
commit ff39afccf0
@@ -14,7 +14,7 @@
xmltodict,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "prowlpy";
version = "2.0.1";
pyproject = true;
@@ -22,7 +22,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "OMEGARAZER";
repo = "prowlpy";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-92r1E/dsXLRzaLXQdahXAPCmSG4T1Ihh/eDFDG3GlmY=";
};
@@ -48,7 +48,7 @@ buildPythonPackage rec {
pytestCheckHook
respx
]
++ lib.concatAttrValues optional-dependencies;
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
preCheck = ''
# Without this pyreqwest fails with
@@ -60,11 +60,11 @@ buildPythonPackage rec {
pytestFlags = [ "-v" ];
meta = {
changelog = "https://github.com/OMEGARAZER/prowlpy/blob/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/OMEGARAZER/prowlpy/blob/${finalAttrs.src.tag}/CHANGELOG.md";
description = "Send push notifications to iPhones using the Prowl API";
homepage = "https://github.com/OMEGARAZER/prowlpy";
license = lib.licenses.gpl3Only;
mainProgram = "prowlpy";
maintainers = [ lib.maintainers.dotlambda ];
};
}
})