diff --git a/pkgs/development/python-modules/graphql-core/default.nix b/pkgs/development/python-modules/graphql-core/default.nix index 57043658c744..1b8fa37aa5e7 100644 --- a/pkgs/development/python-modules/graphql-core/default.nix +++ b/pkgs/development/python-modules/graphql-core/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, - py, + poetry-core, pytest-benchmark, pytest-asyncio, pytestCheckHook, @@ -11,20 +11,28 @@ buildPythonPackage rec { pname = "graphql-core"; - version = "3.2.4"; - format = "setuptools"; + version = "3.2.5"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "graphql-python"; - repo = pname; + repo = "graphql-core"; rev = "refs/tags/v${version}"; - hash = "sha256-LWmUrkYZuyzQ89Z3dXrce1xk3NODXrHWvWG9zAYTUi0="; + hash = "sha256-xZOiQOFWnImDXuvHP9V6BDjIZwlwHSxN/os+UYV4A0M="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail ', "setuptools>=59,<70"' "" + ''; + + build-system = [ + poetry-core + ]; + nativeCheckInputs = [ - py pytest-asyncio pytest-benchmark pytestCheckHook @@ -33,6 +41,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "graphql" ]; meta = with lib; { + changelog = "https://github.com/graphql-python/graphql-core/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; description = "Port of graphql-js to Python"; homepage = "https://github.com/graphql-python/graphql-core"; license = licenses.mit;