15 pytest-console-scripts,
27 buildPythonPackage rec {
32 disabled = pythonOlder "3.7";
34 src = fetchFromGitHub {
35 owner = "graphql-python";
37 rev = "refs/tags/v${version}";
38 hash = "sha256-jm0X+X8gQyQYn03gT14bdr79+Wd5KL9ryvrU/0VUtEU=";
42 substituteInPlace setup.py --replace \
43 "websockets>=10,<11;python_version>'3.6'" \
44 "websockets>=10,<12;python_version>'3.6'"
47 build-system = [ setuptools ];
61 pytest-console-scripts
64 ] ++ optional-dependencies.all;
66 optional-dependencies = {
76 aiohttp = [ aiohttp ];
83 websockets = [ websockets ];
84 botocore = [ botocore ];
88 export PATH=$out/bin:$PATH
97 # Tests requires network access
98 "test_async_client_validation_fetch_schema_from_server_valid_query"
99 "test_execute_result_error"
100 "test_get_introspection_query_ast"
102 "test_hero_name_query"
103 "test_http_transport"
105 "test_query_with_variable"
108 disabledTestPaths = [
109 # Exclude linter tests
110 "gql-checker/tests/test_flake8_linter.py"
111 "gql-checker/tests/test_pylama_linter.py"
114 pythonImportsCheck = [ "gql" ];
117 description = "GraphQL client in Python";
118 homepage = "https://github.com/graphql-python/gql";
119 changelog = "https://github.com/graphql-python/gql/releases/tag/v${version}";
120 license = with licenses; [ mit ];
121 maintainers = with maintainers; [ fab ];
122 mainProgram = "gql-cli";