python3Packages.aiovlc: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-03-20 21:03:53 +01:00
parent dc88e94e6e
commit 33a08a42fa
@@ -10,7 +10,7 @@
typer,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "aiovlc";
version = "0.7.0";
pyproject = true;
@@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aiovlc";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-PA8meWB0LOZX503+GVep03GiUh65MsLI+C6Fe9Iz6nc=";
};
@@ -34,15 +34,15 @@ buildPythonPackage rec {
pytest-timeout
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "aiovlc" ];
meta = {
description = "Python module to control VLC";
homepage = "https://github.com/MartinHjelmare/aiovlc";
changelog = "https://github.com/MartinHjelmare/aiovlc/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/MartinHjelmare/aiovlc/blob/v${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
})