depot/third_party/nixpkgs/pkgs/development/python-modules/strawberry-graphql/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

39 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, poetry, pythonOlder
, click, backports-cached-property, graphql-core, pygments, python-dateutil, python-multipart, typing-extensions
, aiohttp, asgiref, chalice, django, fastapi, flask, pydantic, sanic, starlette, uvicorn
}:
buildPythonPackage rec {
pname = "strawberry-graphql";
version = "0.125.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "strawberry-graphql";
repo = "strawberry";
rev = version;
sha256 = "sha256-8ERmG10qNiYg9Zr8oUZk/Uz68sCE+oWrqmJ5kUMqbRo=";
};
nativeBuildInputs = [
poetry
];
propagatedBuildInputs = [
click backports-cached-property graphql-core pygments python-dateutil python-multipart typing-extensions
aiohttp asgiref chalice django fastapi flask pydantic sanic starlette uvicorn
];
pythonImportsCheck = [
"strawberry"
];
meta = with lib; {
description = "A GraphQL library for Python that leverages type annotations";
homepage = "https://strawberry.rocks";
license = with licenses; [ mit ];
maintainers = with maintainers; [ izorkin ];
};
}