From b06215bc0a6fb9e8a471e7d97ca9cf83230031e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 Mar 2026 04:09:21 +0100 Subject: [PATCH] python313Packages.graphql-core: avoid big pytest-benchmark dependency --- .../python-modules/graphql-core/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/graphql-core/default.nix b/pkgs/development/python-modules/graphql-core/default.nix index 3e2387efc3da..1009f856611f 100644 --- a/pkgs/development/python-modules/graphql-core/default.nix +++ b/pkgs/development/python-modules/graphql-core/default.nix @@ -3,7 +3,6 @@ buildPythonPackage, fetchFromGitHub, poetry-core, - pytest-benchmark, pytest-describe, pytest-asyncio, pytestCheckHook, @@ -24,6 +23,10 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "setuptools>=59,<81"' "" + + # avoid big pytest-benchmark dependency + substituteInPlace setup.cfg \ + --replace-fail "addopts = --benchmark-disable" "" ''; build-system = [ @@ -32,12 +35,13 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-asyncio - pytest-benchmark pytest-describe pytestCheckHook ]; - pytestFlags = [ "--benchmark-disable" ]; + disabledTestPaths = [ + "tests/benchmarks" + ]; pythonImportsCheck = [ "graphql" ];