python3.pkgs.ariadne: remove opentracing dependency (#271999)

opentracing is no longer developed and does not work with python 3.11
This commit is contained in:
Yureka 2023-12-04 12:58:55 +01:00 committed by GitHub
parent 955aaaa916
commit c64d69574a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View File

@ -4,7 +4,6 @@
, hatchling
, freezegun
, graphql-core
, opentracing
, pytest-asyncio
, pytest-mock
, pytestCheckHook
@ -28,6 +27,9 @@ buildPythonPackage rec {
rev = "refs/tags/${version}";
hash = "sha256-v3CaLMTo/zbNEoE3K+aWnFTCgLetcnN7vOU/sFqLq2k=";
};
patches = [
./remove-opentracing.patch
];
nativeBuildInputs = [
hatchling
@ -41,7 +43,6 @@ buildPythonPackage rec {
nativeCheckInputs = [
freezegun
opentracing
pytest-asyncio
pytest-mock
pytestCheckHook
@ -58,12 +59,18 @@ buildPythonPackage rec {
"test_attempt_parse_request_missing_content_type_raises_bad_request_error"
"test_attempt_parse_non_json_request_raises_bad_request_error"
"test_attempt_parse_non_json_request_body_raises_bad_request_error"
# opentracing
"test_query_is_executed_for_multipart_form_request_with_file"
"test_query_is_executed_for_multipart_request_with_large_file_with_tracing"
];
disabledTestPaths = [
# missing graphql-sync-dataloader test dep
"tests/test_dataloaders.py"
"tests/wsgi/test_configuration.py"
# both include opentracing module, which has been removed from nixpkgs
"tests/tracing/test_opentracing.py"
"tests/tracing/test_opentelemetry.py"
];
meta = with lib; {

View File

@ -0,0 +1,12 @@
diff --git a/tests/asgi/conftest.py b/tests/asgi/conftest.py
index a703466..223586e 100644
--- a/tests/asgi/conftest.py
+++ b/tests/asgi/conftest.py
@@ -8,7 +8,6 @@ from ariadne.asgi.handlers import (
GraphQLTransportWSHandler,
GraphQLWSHandler,
)
-from ariadne.contrib.tracing.opentracing import opentracing_extension
@pytest.fixture