From d34c103df231f66aeec60c630ef8d9972dd6f7e0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Jun 2026 10:42:13 +0200 Subject: [PATCH] python3Packages.strawberry-graphql: migrate to finalAttrs --- .../python-modules/strawberry-graphql/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/strawberry-graphql/default.nix b/pkgs/development/python-modules/strawberry-graphql/default.nix index b8524a2405fd..8e0e164918e8 100644 --- a/pkgs/development/python-modules/strawberry-graphql/default.nix +++ b/pkgs/development/python-modules/strawberry-graphql/default.nix @@ -42,7 +42,7 @@ graphlib-backport, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "strawberry-graphql"; version = "0.289.2"; pyproject = true; @@ -50,7 +50,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "strawberry-graphql"; repo = "strawberry"; - tag = version; + tag = finalAttrs.version; hash = "sha256-eiIyAYId5MHKWmn87Cj/TCNN4YU5KkAWMEMhoMIR8xM="; }; @@ -138,7 +138,7 @@ buildPythonPackage rec { pytestCheckHook sanic-testing ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies); pythonImportsCheck = [ "strawberry" ]; @@ -163,9 +163,9 @@ buildPythonPackage rec { meta = { description = "GraphQL library for Python that leverages type annotations"; homepage = "https://strawberry.rocks"; - changelog = "https://github.com/strawberry-graphql/strawberry/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/strawberry-graphql/strawberry/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ izorkin ]; mainProgram = "strawberry"; }; -} +})