python3Packages.strawberry-graphql: migrate to finalAttrs
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user