1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, black 5, graphql-core 6, promise 7, fetchpatch 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "graphql-server-core"; 13 version = "2.0.0"; 14 15 src = fetchFromGitHub { 16 owner = "graphql-python"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "1w3biv2za2m1brwjy0z049c2m94gm1zfwxzgc6lwrsci724jv9fr"; 20 }; 21 22 disable = pythonOlder "3.6"; 23 24 patches = [ 25 (fetchpatch { 26 url = "https://github.com/graphql-python/graphql-server-core/commit/865ee9d5602f352c958f6f7e15adbe9abe216784.patch"; 27 sha256 = "03p44p4j8rys7mgamh2h9ibbnac2cqwvp5f5hrl2avj2hh0l6j46"; 28 }) 29 ]; 30 31 propagatedBuildInputs = [ 32 graphql-core 33 promise 34 ]; 35 36 checkPhase = "black --check graphql_server tests"; 37 38 checkInputs = [ 39 black 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; [ 47 kamadorueda 48 ]; 49 }; 50}