python3Packages.aioskybell: use finalAttrs

This commit is contained in:
Robert Schütz
2026-07-08 19:23:00 -07:00
parent 2248791fc5
commit 842f062743
@@ -12,7 +12,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "aioskybell";
version = "23.12.0";
pyproject = true;
@@ -20,13 +20,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "tkdrob";
repo = "aioskybell";
tag = version;
tag = finalAttrs.version;
hash = "sha256-5F0B5z0pJLKJPzKIowE07vEgmNXnDVEeGFbPGnJ6H9I=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'version="master",' 'version="${version}",'
--replace 'version="master",' 'version="${finalAttrs.version}",'
'';
nativeBuildInputs = [ setuptools ];
@@ -59,4 +59,4 @@ buildPythonPackage rec {
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
})