14 , pytest-console-scripts
26 buildPythonPackage rec {
31 disabled = pythonOlder "3.7";
33 src = fetchFromGitHub {
34 owner = "graphql-python";
36 rev = "refs/tags/v${version}";
37 hash = "sha256-jm0X+X8gQyQYn03gT14bdr79+Wd5KL9ryvrU/0VUtEU=";
41 substituteInPlace setup.py --replace \
42 "websockets>=10,<11;python_version>'3.6'" \
43 "websockets>=10,<12;python_version>'3.6'"
62 pytest-console-scripts
65 ] ++ optional-dependencies.all;
67 optional-dependencies = {
97 export PATH=$out/bin:$PATH
101 "--asyncio-mode=auto"
105 # Tests requires network access
106 "test_execute_result_error"
107 "test_http_transport"
110 disabledTestPaths = [
111 # Exclude linter tests
112 "gql-checker/tests/test_flake8_linter.py"
113 "gql-checker/tests/test_pylama_linter.py"
114 # Tests require network access
115 "tests/custom_scalars/test_money.py"
116 "tests/test_aiohttp.py"
117 "tests/test_appsync_http.py"
118 "tests/test_appsync_websockets.py"
119 "tests/test_async_client_validation.py"
120 "tests/test_graphqlws_exceptions.py"
121 "tests/test_graphqlws_subscription.py"
122 "tests/test_phoenix_channel_exceptions.py"
123 "tests/test_phoenix_channel_exceptions.py"
124 "tests/test_phoenix_channel_query.py"
125 "tests/test_phoenix_channel_subscription.py"
126 "tests/test_requests.py"
127 "tests/test_websocket_exceptions.py"
128 "tests/test_websocket_query.py"
129 "tests/test_websocket_subscription.py"
132 pythonImportsCheck = [
137 description = "GraphQL client in Python";
138 mainProgram = "gql-cli";
139 homepage = "https://github.com/graphql-python/gql";
140 changelog = "https://github.com/graphql-python/gql/releases/tag/v${version}";
141 license = with licenses; [ mit ];
142 maintainers = with maintainers; [ fab ];