Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4 5, coveralls 6, promise 7, pytest 8, pytest-benchmark 9, pytest-mock 10, rx 11, six 12}: 13 14buildPythonPackage rec { 15 pname = "graphql-core"; 16 version = "3.1.2"; 17 18 src = fetchFromGitHub { 19 owner = "graphql-python"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "0kvbj9dwpx8mjfj86kqx54dbz9k72ki147ssyj0ca2syvb8jm3wb"; 23 }; 24 25 propagatedBuildInputs = [ 26 promise 27 rx 28 six 29 ]; 30 31 checkInputs = [ 32 coveralls 33 pytest 34 pytest-benchmark 35 pytest-mock 36 ]; 37 38 checkPhase = "pytest"; 39 40 configurePhase = '' 41 substituteInPlace setup.py \ 42 --replace 'pytest-mock==1.2' 'pytest-mock==1.13.0' \ 43 --replace 'pytest-benchmark==3.0.0' 'pytest-benchmark==3.2.2' 44 ''; 45 46 meta = with lib; { 47 description = "Port of graphql-js to Python"; 48 homepage = "https://github.com/graphql-python/graphql-core"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ 51 kamadorueda 52 ]; 53 }; 54}