python3Packages.starlette-context: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-03-04 21:33:48 +01:00
parent 0bf27e47e1
commit 6cd81a1e69
@@ -9,7 +9,7 @@
starlette,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "starlette-context";
version = "0.5.1";
pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "tomwojcik";
repo = "starlette-context";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-cxhTrLLIjlqaR07VVgHmvYctk7+7fDjbGb39PbJbGgk=";
};
@@ -36,8 +36,8 @@ buildPythonPackage rec {
meta = {
description = "Middleware for Starlette that allows you to store and access the context data of a request";
homepage = "https://github.com/tomwojcik/starlette-context";
changelog = "https://github.com/tomwojcik/starlette-context/releases/tag/v${version}";
changelog = "https://github.com/tomwojcik/starlette-context/releases/tag/v${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})