Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 61 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aniso8601 5, graphql-core 6, graphql-relay 7, promise 8, pytestCheckHook 9, pytest-asyncio 10, pytest-benchmark 11, pytest-mock 12, pytz 13, snapshottest 14, fetchpatch 15}: 16 17buildPythonPackage rec { 18 pname = "graphene"; 19 version = "3.0.0b7"; 20 21 src = fetchFromGitHub { 22 owner = "graphql-python"; 23 repo = "graphene"; 24 rev = "v${version}"; 25 sha256 = "sha256-bVCCLPnV5F8PqLMg3GwcpwpGldrxsU+WryL6gj6y338="; 26 }; 27 28 # Allow later aniso8601 releases 29 # https://github.com/graphql-python/graphene/pull/1331 30 patches = [ (fetchpatch { 31 url = "https://github.com/graphql-python/graphene/commit/26b16f75b125e35eeb2274b7be503ec29f2e8a45.patch"; 32 sha256 = "qm96pNOoxPieEy1CFZpa2Mx010pY3QU/vRyuL0qO3Tk="; 33 }) ]; 34 35 propagatedBuildInputs = [ 36 aniso8601 37 graphql-core 38 graphql-relay 39 ]; 40 41 checkInputs = [ 42 promise 43 pytestCheckHook 44 pytest-asyncio 45 pytest-benchmark 46 pytest-mock 47 pytz 48 snapshottest 49 ]; 50 51 pytestFlagsArray = [ "--benchmark-disable" ]; 52 53 pythonImportsCheck = [ "graphene" ]; 54 55 meta = with lib; { 56 description = "GraphQL Framework for Python"; 57 homepage = "https://github.com/graphql-python/graphene"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ SuperSandro2000 ]; 60 }; 61}