From 0bf27e47e1f9cd7266cbe4d09a6f6e0fd8a45de1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 4 Mar 2026 21:31:49 +0100 Subject: [PATCH 1/2] python3Packages.starlette-context: 0.4.0 -> 0.5.1 Changelog: https://github.com/tomwojcik/starlette-context/releases/tag/v0.5.1 --- .../python-modules/starlette-context/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/starlette-context/default.nix b/pkgs/development/python-modules/starlette-context/default.nix index 1aa054adc8a3..730c9185ff3b 100644 --- a/pkgs/development/python-modules/starlette-context/default.nix +++ b/pkgs/development/python-modules/starlette-context/default.nix @@ -3,7 +3,7 @@ buildPythonPackage, fetchFromGitHub, httpx, - poetry-core, + hatchling, pytest-asyncio, pytestCheckHook, starlette, @@ -11,17 +11,17 @@ buildPythonPackage rec { pname = "starlette-context"; - version = "0.4.0"; + version = "0.5.1"; pyproject = true; src = fetchFromGitHub { owner = "tomwojcik"; repo = "starlette-context"; tag = "v${version}"; - hash = "sha256-PzVZ458TdBLdbFJDN+X8hVU5zsRxcesihoDB+jRaKAg="; + hash = "sha256-cxhTrLLIjlqaR07VVgHmvYctk7+7fDjbGb39PbJbGgk="; }; - build-system = [ poetry-core ]; + build-system = [ hatchling ]; dependencies = [ starlette ]; From 6cd81a1e69b7abfdec250b910db5888fcf132b78 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 4 Mar 2026 21:33:48 +0100 Subject: [PATCH 2/2] python3Packages.starlette-context: migrate to finalAttrs --- .../python-modules/starlette-context/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/starlette-context/default.nix b/pkgs/development/python-modules/starlette-context/default.nix index 730c9185ff3b..a18225be77ab 100644 --- a/pkgs/development/python-modules/starlette-context/default.nix +++ b/pkgs/development/python-modules/starlette-context/default.nix @@ -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 ]; }; -} +})