From d08e1a3f61c2ea03c4435b9bbcbe5955a192c47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 11 Nov 2024 20:35:02 -0800 Subject: [PATCH] python312Packages.graphql-core: 3.2.4 -> 3.2.5 Diff: https://github.com/graphql-python/graphql-core/compare/refs/tags/v3.2.4...v3.2.5 Changelog: https://github.com/graphql-python/graphql-core/releases/tag/v3.2.5 --- .../python-modules/graphql-core/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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;