From 64810e46efe7bbb47696e12fa835bfedc0360637 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Tue, 24 Feb 2026 12:19:54 -0800 Subject: [PATCH] python3Packages.compressed-tensors: migrate to finalAttrs --- .../python-modules/compressed-tensors/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/compressed-tensors/default.nix b/pkgs/development/python-modules/compressed-tensors/default.nix index 08c0b149d3ce..b3b460f04aac 100644 --- a/pkgs/development/python-modules/compressed-tensors/default.nix +++ b/pkgs/development/python-modules/compressed-tensors/default.nix @@ -22,7 +22,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "compressed-tensors"; version = "0.13.0"; pyproject = true; @@ -31,7 +31,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "neuralmagic"; repo = "compressed-tensors"; - tag = version; + tag = finalAttrs.version; hash = "sha256-XsQRP186ISarMMES3P+ov4t/1KKJdl0tXBrfpjyM3XA="; }; @@ -94,8 +94,8 @@ buildPythonPackage rec { meta = { description = "Safetensors extension to efficiently store sparse quantized tensors on disk"; homepage = "https://github.com/neuralmagic/compressed-tensors"; - changelog = "https://github.com/neuralmagic/compressed-tensors/releases/tag/${src.tag}"; + changelog = "https://github.com/neuralmagic/compressed-tensors/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})