python3Packages.aiotankerkoenig: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-03-17 20:04:41 +01:00
committed by Sandro Jäckel
parent 976d441876
commit fedea682d2
@@ -14,7 +14,7 @@
yarl,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "aiotankerkoenig";
version = "0.5.2";
pyproject = true;
@@ -22,13 +22,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "jpbede";
repo = "aiotankerkoenig";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-LpaJyx5w0htbvWJ8kL8BlyMdlLOKlR6p+XW7qWMhXZo=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
--replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"'
'';
build-system = [ hatchling ];
@@ -53,8 +53,8 @@ buildPythonPackage rec {
meta = {
description = "Python module for interacting with tankerkoenig.de";
homepage = "https://github.com/jpbede/aiotankerkoenig";
changelog = "https://github.com/jpbede/aiotankerkoenig/releases/tag/v${version}";
changelog = "https://github.com/jpbede/aiotankerkoenig/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})