From f485caf604d735d505c0a9adffc56fa9dd04468a Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 6 Jul 2026 16:54:14 +0300 Subject: [PATCH] python3Packages.prometheus-fastapi-instrumenter: switch to finalAttrs --- .../prometheus-fastapi-instrumentator/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix b/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix index 25555998ed24..06867352d6ec 100644 --- a/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix +++ b/pkgs/development/python-modules/prometheus-fastapi-instrumentator/default.nix @@ -13,7 +13,7 @@ starlette, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "prometheus-fastapi-instrumentator"; version = "7.1.0"; pyproject = true; @@ -21,7 +21,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "trallnag"; repo = "prometheus-fastapi-instrumentator"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-54h/kwIdzFzxdYglwcEBPkLYno1YH2iWklg35qY2b00="; }; @@ -50,7 +50,7 @@ buildPythonPackage rec { meta = { description = "Instrument FastAPI with Prometheus metrics"; homepage = "https://github.com/trallnag/prometheus-fastapi-instrumentator"; - changelog = "https://github.com/trallnag/prometheus-fastapi-instrumentator/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/trallnag/prometheus-fastapi-instrumentator/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = with lib.licenses; [ isc bsd3 @@ -58,4 +58,4 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ bcdarwin ]; platforms = lib.platforms.unix; }; -} +})