python3Packages.gql: 3.5.3 -> 4.0.0

Diff: https://github.com/graphql-python/gql/compare/v3.5.3...v4.0.0

Changelog: https://github.com/graphql-python/gql/releases/tag/v4.0.0

Changed files
+7 -38
pkgs
development
python-modules
+7 -38
pkgs/development/python-modules/gql/default.nix
···
fetchFromGitHub,
graphql-core,
httpx,
-
mock,
parse,
pytest-asyncio_0,
pytest-console-scripts,
pytestCheckHook,
-
pythonOlder,
requests,
requests-toolbelt,
setuptools,
-
urllib3,
vcrpy,
websockets,
yarl,
···
buildPythonPackage rec {
pname = "gql";
-
version = "3.5.3";
+
version = "4.0.0";
pyproject = true;
-
disabled = pythonOlder "3.7";
-
src = fetchFromGitHub {
owner = "graphql-python";
repo = "gql";
tag = "v${version}";
-
hash = "sha256-0mVMhJHlF6EZ3D9fuNrzkoHm9vIAKxbuajmUs1JL0HY=";
+
hash = "sha256-bPdlFN6MRT6G9Mw2g2BBfsOGpQmT7pbRatpqa7CImSs=";
};
build-system = [ setuptools ];
···
];
nativeCheckInputs = [
-
aiofiles
-
mock
parse
pytest-asyncio_0
pytest-console-scripts
···
optional-dependencies = {
all = [
+
aiofiles
aiohttp
botocore
httpx
requests
requests-toolbelt
-
urllib3
websockets
];
+
aiofiles = [ aiofiles ];
aiohttp = [ aiohttp ];
httpx = [ httpx ];
requests = [
requests
requests-toolbelt
-
urllib3
];
websockets = [ websockets ];
botocore = [ botocore ];
···
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; {
+
meta = {
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 ];
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ fab ];
mainProgram = "gql-cli";
};
}