python3Packages.pythonkuma: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-06-04 16:31:26 +02:00
committed by Martin Weinelt
parent f8cea46943
commit 6c1fcce9ca
@@ -7,20 +7,17 @@
hatchling,
mashumaro,
prometheus-client,
pythonOlder,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pythonkuma";
version = "0.5.1";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "tr4nt0r";
repo = "pythonkuma";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-jQapfwdDuHb5Ha25cUQycfRb/A07pRtm92Iy8bbYfqI=";
};
@@ -38,15 +35,13 @@ buildPythonPackage rec {
# Tests are minimal and don't test functionality
doCheck = false;
pythonImportsCheck = [
"pythonkuma"
];
pythonImportsCheck = [ "pythonkuma" ];
meta = {
description = "Simple Python wrapper for Uptime Kuma";
homepage = "https://github.com/tr4nt0r/pythonkuma";
changelog = "https://github.com/tr4nt0r/pythonkuma/releases/tag/v${version}";
changelog = "https://github.com/tr4nt0r/pythonkuma/releases/tag/v${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
})