From f5f8da561d346643f419ee830b6a076b47d2304d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 May 2026 12:16:10 +0200 Subject: [PATCH] python3Packages.color-operations: migrate to finalAttrs --- .../python-modules/color-operations/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/color-operations/default.nix b/pkgs/development/python-modules/color-operations/default.nix index 3e57d0f2797b..dadf385564e6 100644 --- a/pkgs/development/python-modules/color-operations/default.nix +++ b/pkgs/development/python-modules/color-operations/default.nix @@ -16,7 +16,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "color-operations"; version = "0.3.0"; pyproject = true; @@ -24,7 +24,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "vincentsarago"; repo = "color-operations"; - tag = version; + tag = finalAttrs.version; hash = "sha256-hDxbyhelsl/EvsesD4Rux5CQM86squ4gHevVK/UP8Y8="; }; @@ -50,8 +50,8 @@ buildPythonPackage rec { meta = { description = "Apply basic color-oriented image operations. Fork of rio-color"; homepage = "https://github.com/vincentsarago/color-operations"; - changelog = "https://github.com/vincentsarago/color-operations/releases/tag/${src.tag}"; + changelog = "https://github.com/vincentsarago/color-operations/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; teams = [ lib.teams.geospatial ]; }; -} +})