From 24eab6bae704efd51abf2ea90ef23e1944521886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 28 Nov 2022 21:34:17 -0800 Subject: [PATCH] python310Packages.strawberry-graphql: use poetry-core --- .../python-modules/strawberry-graphql/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/strawberry-graphql/default.nix b/pkgs/development/python-modules/strawberry-graphql/default.nix index 3c84d30ab371..ca4b1b81725d 100644 --- a/pkgs/development/python-modules/strawberry-graphql/default.nix +++ b/pkgs/development/python-modules/strawberry-graphql/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchFromGitHub, poetry, pythonOlder +{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, poetry-core, pythonOlder , click, backports-cached-property, graphql-core, pygments, python-dateutil, python-multipart, typing-extensions , aiohttp, asgiref, chalice, django, fastapi, flask, pydantic, sanic, starlette, uvicorn }: @@ -17,8 +17,16 @@ buildPythonPackage rec { sha256 = "sha256-8ERmG10qNiYg9Zr8oUZk/Uz68sCE+oWrqmJ5kUMqbRo="; }; + patches = [ + (fetchpatch { + name = "switch-to-poetry-core.patch"; + url = "https://github.com/strawberry-graphql/strawberry/commit/710bb96f47c244e78fc54c921802bcdb48f5f421.patch"; + hash = "sha256-ekUZ2hDPCqwXp9n0YjBikwSkhCmVKUzQk7LrPECcD7Y="; + }) + ]; + nativeBuildInputs = [ - poetry + poetry-core ]; propagatedBuildInputs = [