python3Packages.teslemetry-stream: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-08-02 22:45:34 +02:00
committed by GitHub
parent ce45a9e3e5
commit 7324ea6f4d
@@ -6,7 +6,7 @@
aiohttp,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "teslemetry-stream";
version = "0.10.0";
pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Teslemetry";
repo = "python-teslemetry-stream";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-ko9H0qhstD9VnR5707E9BUdJG2/KGGLsUxQpQ8F28y4=";
};
@@ -27,10 +27,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "teslemetry_stream" ];
meta = {
changelog = "https://github.com/Teslemetry/python-teslemetry-stream/releases/tag/${src.tag}";
changelog = "https://github.com/Teslemetry/python-teslemetry-stream/releases/tag/${finalAttrs.src.tag}";
description = "Python library for the Teslemetry Streaming API";
homepage = "https://github.com/Teslemetry/python-teslemetry-stream";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
}
})