From 920394fbdaf7ebe57a781159e806c39401f8e4fb Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 29 Jul 2023 11:32:29 -0700 Subject: [PATCH] python3.pkgs.graphql-relay: patch out setuptools dependency --- .../python-modules/graphql-relay/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/graphql-relay/default.nix b/pkgs/development/python-modules/graphql-relay/default.nix index c751ba560bd3..ac91b749070d 100644 --- a/pkgs/development/python-modules/graphql-relay/default.nix +++ b/pkgs/development/python-modules/graphql-relay/default.nix @@ -27,6 +27,16 @@ buildPythonPackage rec { hash = "sha256-H/HFEpg1bkgaC+AJzN/ySYMs5T8wVZwTOPIqDg0XJQw="; }; + # This project doesn't seem to actually need setuptools. To find out why it + # specifies it, follow up in: + # + # https://github.com/graphql-python/graphql-relay-py/issues/49 + # + postPatch = '' + substituteInPlace pyproject.toml \ + --replace ', "setuptools>=59,<70"' "" + ''; + nativeBuildInputs = [ poetry-core ];