From 1ffaf86c793f5638ecbe2d25496987489d10cb2c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 Feb 2026 13:22:05 +0100 Subject: [PATCH] python3Packages.watchfiles: migrate to finalAttrs --- pkgs/development/python-modules/watchfiles/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/watchfiles/default.nix b/pkgs/development/python-modules/watchfiles/default.nix index 8f9e0e42cdd3..d784a0c0ea86 100644 --- a/pkgs/development/python-modules/watchfiles/default.nix +++ b/pkgs/development/python-modules/watchfiles/default.nix @@ -11,7 +11,7 @@ versionCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "watchfiles"; version = "1.1.1"; pyproject = true; @@ -19,12 +19,12 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "samuelcolvin"; repo = "watchfiles"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-UlQnCYSNU9H4x31KenSfYExGun94ekrOCwajORemSco="; }; cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname src version; + inherit (finalAttrs) pname src version; hash = "sha256-6sxtH7KrwAWukPjLSMAebguPmeAHbC7YHOn1QiRPigs="; }; @@ -62,9 +62,9 @@ buildPythonPackage rec { meta = { description = "File watching and code reload"; homepage = "https://watchfiles.helpmanual.io/"; - changelog = "https://github.com/samuelcolvin/watchfiles/releases/tag/${src.tag}"; + changelog = "https://github.com/samuelcolvin/watchfiles/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; mainProgram = "watchfiles"; }; -} +})