From 2aea9c73439f2a2a8991b5322a4dbc9a132cf679 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 9 Feb 2026 16:13:14 +0100 Subject: [PATCH] python3Packages.triton: use finalAttrs --- pkgs/development/python-modules/triton/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/triton/default.nix b/pkgs/development/python-modules/triton/default.nix index 9b904f5b1728..b33dfc898ea0 100644 --- a/pkgs/development/python-modules/triton/default.nix +++ b/pkgs/development/python-modules/triton/default.nix @@ -41,7 +41,7 @@ cudaSupport ? config.cudaSupport, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "triton"; version = "3.5.1"; pyproject = true; @@ -50,7 +50,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "triton-lang"; repo = "triton"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-dyNRtS1qtU8C/iAf0Udt/1VgtKGSvng1+r2BtvT9RB4="; }; @@ -314,6 +314,7 @@ buildPythonPackage rec { meta = { description = "Language and compiler for writing highly efficient custom Deep-Learning primitives"; homepage = "https://github.com/triton-lang/triton"; + changelog = "https://github.com/triton-lang/triton/releases/tag/${finalAttrs.src.tag}"; platforms = lib.platforms.linux; license = lib.licenses.mit; maintainers = with lib.maintainers; [ @@ -321,4 +322,4 @@ buildPythonPackage rec { derdennisop ]; }; -} +})