Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 706 B view raw
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.4"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "graphql-python"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "sha256-lamV5Rd37WvFBJ+zJUb+UhqxoNUrRhoMJx1NodbQUjs="; 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}