From 4ad456f1cfdeff671be7417f6d1f0b02c1f4de71 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 16 Feb 2026 22:39:13 +0000 Subject: [PATCH] python3Packages.whisperx: use finalAttrs --- pkgs/development/python-modules/whisperx/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/whisperx/default.nix b/pkgs/development/python-modules/whisperx/default.nix index ba7734045e14..ca4a6e297eb9 100644 --- a/pkgs/development/python-modules/whisperx/default.nix +++ b/pkgs/development/python-modules/whisperx/default.nix @@ -37,7 +37,7 @@ let }; }; in -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "whisperx"; version = "3.8.1"; pyproject = true; @@ -45,7 +45,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "m-bain"; repo = "whisperX"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-2HjQtb8k3px0kqXowKtCXkiG2GuKLCuCtDOPYYa/tbc="; }; @@ -90,8 +90,8 @@ buildPythonPackage rec { mainProgram = "whisperx"; description = "Automatic Speech Recognition with Word-level Timestamps (& Diarization)"; homepage = "https://github.com/m-bain/whisperX"; - changelog = "https://github.com/m-bain/whisperX/releases/tag/${src.tag}"; + changelog = "https://github.com/m-bain/whisperX/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd2; maintainers = [ lib.maintainers.bengsparks ]; }; -} +})