1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, graphql-core 5, promise 6, fetchpatch 7, pythonOlder 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "graphql-server-core"; 13 version = "2.0.0"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "graphql-python"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "1w3biv2za2m1brwjy0z049c2m94gm1zfwxzgc6lwrsci724jv9fr"; 21 }; 22 23 patches = [ 24 (fetchpatch { 25 url = "https://github.com/graphql-python/graphql-server-core/commit/865ee9d5602f352c958f6f7e15adbe9abe216784.patch"; 26 sha256 = "03p44p4j8rys7mgamh2h9ibbnac2cqwvp5f5hrl2avj2hh0l6j46"; 27 }) 28 ]; 29 30 propagatedBuildInputs = [ 31 graphql-core 32 promise 33 ]; 34 35 # fail with: cannot import name 'format_error' from 'graphql' 36 doCheck = false; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 meta = with lib; { 43 description = "Core package for using GraphQL in a custom server easily"; 44 homepage = "https://github.com/graphql-python/graphql-server-core"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ kamadorueda ]; 47 }; 48}