Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.3 kB · 126 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127{ lib, aiofiles, aiohttp, anyio, backoff, botocore, buildPythonPackage, fetchFromGitHub, graphql-core, httpx, mock, parse, pytest-asyncio, pytest-console-scripts, pytestCheckHook, pythonOlder, requests, requests-toolbelt, setuptools, urllib3, vcrpy, websockets, yarl,}:
buildPythonPackage rec { pname = "gql"; version = "3.5.3"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "graphql-python"; repo = "gql"; tag = "v${version}"; hash = "sha256-0mVMhJHlF6EZ3D9fuNrzkoHm9vIAKxbuajmUs1JL0HY="; };
build-system = [ setuptools ];
dependencies = [ anyio backoff graphql-core yarl ];
nativeCheckInputs = [ aiofiles mock parse pytest-asyncio pytest-console-scripts pytestCheckHook vcrpy ] ++ optional-dependencies.all;
optional-dependencies = { all = [ aiohttp botocore httpx requests requests-toolbelt urllib3 websockets ]; aiohttp = [ aiohttp ]; httpx = [ httpx ]; requests = [ requests requests-toolbelt urllib3 ]; websockets = [ websockets ]; botocore = [ botocore ]; };
preCheck = '' export PATH=$out/bin:$PATH '';
pytestFlags = [ "--asyncio-mode=auto" ];
disabledTestMarks = [ "online" ];
disabledTests = [ # Tests requires network access "test_async_client_validation_fetch_schema_from_server_valid_query" "test_execute_result_error" "test_get_introspection_query_ast" "test_header_query" "test_hero_name_query" "test_http_transport" "test_named_query" "test_query_with_variable" ];
disabledTestPaths = [ # Exclude linter tests "gql-checker/tests/test_flake8_linter.py" "gql-checker/tests/test_pylama_linter.py" "tests/test_httpx.py" "tests/test_httpx_async.py" ];
pythonImportsCheck = [ "gql" ];
__darwinAllowLocalNetworking = true;
meta = with lib; { description = "GraphQL client in Python"; homepage = "https://github.com/graphql-python/gql"; changelog = "https://github.com/graphql-python/gql/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; mainProgram = "gql-cli"; };}