1{ lib, buildPythonPackage, fetchFromGitHub, poetry, pythonOlder 2, click, backports-cached-property, graphql-core, pygments, python-dateutil, python-multipart, typing-extensions 3, aiohttp, asgiref, chalice, django, fastapi, flask, pydantic, sanic, starlette, uvicorn 4}: 5 6buildPythonPackage rec { 7 pname = "strawberry-graphql"; 8 version = "0.125.0"; 9 format = "pyproject"; 10 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = "strawberry-graphql"; 15 repo = "strawberry"; 16 rev = version; 17 sha256 = "sha256-8ERmG10qNiYg9Zr8oUZk/Uz68sCE+oWrqmJ5kUMqbRo="; 18 }; 19 20 nativeBuildInputs = [ 21 poetry 22 ]; 23 24 propagatedBuildInputs = [ 25 click backports-cached-property graphql-core pygments python-dateutil python-multipart typing-extensions 26 aiohttp asgiref chalice django fastapi flask pydantic sanic starlette uvicorn 27 ]; 28 29 pythonImportsCheck = [ 30 "strawberry" 31 ]; 32 33 meta = with lib; { 34 description = "A GraphQL library for Python that leverages type annotations"; 35 homepage = "https://strawberry.rocks"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ izorkin ]; 38 }; 39}