python3Packages.strawberry-graphql: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-06-06 11:10:24 +02:00
parent 3ea261e8e3
commit d34c103df2
@@ -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";
};
}
})