python313Packages.graphql-core: avoid big pytest-benchmark dependency

This commit is contained in:
Sandro Jäckel
2026-03-27 04:09:21 +01:00
parent ef1cd0d24a
commit b06215bc0a
@@ -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" ];