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" ];