python313Packages.graphql-core: avoid big pytest-benchmark dependency
This commit is contained in:
@@ -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" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user