1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-benchmark 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "graphql-core"; 11 version = "3.1.6"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "graphql-python"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "1ip0yrqmnqncgpwvba18x020gkwr7csiw4zdy6mrdnvwf5qyam4x"; 19 }; 20 21 checkInputs = [ 22 pytest-benchmark 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ "graphql" ]; 27 28 meta = with lib; { 29 description = "Port of graphql-js to Python"; 30 homepage = "https://github.com/graphql-python/graphql-core"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ kamadorueda ]; 33 }; 34}