nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 77 lines 1.3 kB view raw
1{ lib 2, aiofiles 3, aiohttp 4, botocore 5, buildPythonPackage 6, fetchFromGitHub 7, graphql-core 8, mock 9, parse 10, pytest-asyncio 11, pytestCheckHook 12, pythonOlder 13, requests 14, requests-toolbelt 15, urllib3 16, vcrpy 17, websockets 18, yarl 19}: 20 21buildPythonPackage rec { 22 pname = "gql"; 23 version = "3.1.0"; 24 format = "setuptools"; 25 26 disabled = pythonOlder "3.6"; 27 28 src = fetchFromGitHub { 29 owner = "graphql-python"; 30 repo = pname; 31 rev = "v${version}"; 32 hash = "sha256-ZtrT+zeoP9KXdaCDKOUrjEwe7dN0+IwA20FDe5ja7l8="; 33 }; 34 35 propagatedBuildInputs = [ 36 aiohttp 37 botocore 38 graphql-core 39 requests 40 requests-toolbelt 41 urllib3 42 websockets 43 yarl 44 ]; 45 46 checkInputs = [ 47 aiofiles 48 mock 49 parse 50 pytest-asyncio 51 pytestCheckHook 52 vcrpy 53 ]; 54 55 disabledTests = [ 56 # Tests requires network access 57 "test_execute_result_error" 58 "test_http_transport" 59 ]; 60 61 disabledTestPaths = [ 62 # Exclude linter tests 63 "gql-checker/tests/test_flake8_linter.py" 64 "gql-checker/tests/test_pylama_linter.py" 65 ]; 66 67 pythonImportsCheck = [ 68 "gql" 69 ]; 70 71 meta = with lib; { 72 description = "GraphQL client in Python"; 73 homepage = "https://github.com/graphql-python/gql"; 74 license = with licenses; [ mit ]; 75 maintainers = with maintainers; [ fab ]; 76 }; 77}