From 063bacf73dd6bc704a013d69bad8e9447e11fd0e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 27 May 2026 18:16:44 +0000 Subject: [PATCH] python3Packages.openai-whisper: cleanup --- .../python-modules/openai-whisper/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/openai-whisper/default.nix b/pkgs/development/python-modules/openai-whisper/default.nix index b15bcefd1503..0fa011ac0a75 100644 --- a/pkgs/development/python-modules/openai-whisper/default.nix +++ b/pkgs/development/python-modules/openai-whisper/default.nix @@ -26,15 +26,16 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "whisper"; version = "20250625"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "openai"; repo = "whisper"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Zn2HUCor1eCJBP7q0vpffqhw5SNguz8zCGoPgdt6P+c="; }; @@ -76,11 +77,11 @@ buildPythonPackage rec { ]; meta = { - changelog = "https://github.com/openai/whisper/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/openai/whisper/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "General-purpose speech recognition model"; mainProgram = "whisper"; homepage = "https://github.com/openai/whisper"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ MayNiklas ]; }; -} +})