Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 py, 6 pytest-benchmark, 7 pytest-asyncio, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "graphql-core"; 14 version = "3.2.3"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "graphql-python"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-LtBbHA5r6/YNh2gKX0+NqQjrpKuMioyOYWT0R59SIL4="; 24 }; 25 26 nativeCheckInputs = [ 27 py 28 pytest-asyncio 29 pytest-benchmark 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "graphql" ]; 34 35 meta = with lib; { 36 description = "Port of graphql-js to Python"; 37 homepage = "https://github.com/graphql-python/graphql-core"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ kamadorueda ]; 40 }; 41}