mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 10:14:09 +00:00
strawberry-graphql: nixfmt
This commit is contained in:
parent
6de5406016
commit
7fa2d5374c
@ -1,10 +1,46 @@
|
||||
{ lib, aiohttp, asgiref, buildPythonPackage, chalice, channels, daphne, django
|
||||
, email-validator, fastapi, fetchFromGitHub, fetchpatch, flask, freezegun
|
||||
, graphql-core, inline-snapshot, libcst, opentelemetry-api, opentelemetry-sdk
|
||||
, poetry-core, pydantic, pygments, pyinstrument, pytest-aiohttp, pytest-asyncio
|
||||
, pytest-django, pytest-emoji, pytest-flask, pytest-mock, pytest-snapshot
|
||||
, pytestCheckHook, python-dateutil, python-multipart, pythonOlder, rich, sanic
|
||||
, sanic-testing, starlette, typing-extensions, uvicorn, typer, graphlib-backport
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
asgiref,
|
||||
buildPythonPackage,
|
||||
chalice,
|
||||
channels,
|
||||
daphne,
|
||||
django,
|
||||
email-validator,
|
||||
fastapi,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
flask,
|
||||
freezegun,
|
||||
graphql-core,
|
||||
inline-snapshot,
|
||||
libcst,
|
||||
opentelemetry-api,
|
||||
opentelemetry-sdk,
|
||||
poetry-core,
|
||||
pydantic,
|
||||
pygments,
|
||||
pyinstrument,
|
||||
pytest-aiohttp,
|
||||
pytest-asyncio,
|
||||
pytest-django,
|
||||
pytest-emoji,
|
||||
pytest-flask,
|
||||
pytest-mock,
|
||||
pytest-snapshot,
|
||||
pytestCheckHook,
|
||||
python-dateutil,
|
||||
python-multipart,
|
||||
pythonOlder,
|
||||
rich,
|
||||
sanic,
|
||||
sanic-testing,
|
||||
starlette,
|
||||
typing-extensions,
|
||||
uvicorn,
|
||||
typer,
|
||||
graphlib-backport,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -25,8 +61,7 @@ buildPythonPackage rec {
|
||||
(fetchpatch {
|
||||
# https://github.com/strawberry-graphql/strawberry/pull/2199
|
||||
name = "switch-to-poetry-core.patch";
|
||||
url =
|
||||
"https://github.com/strawberry-graphql/strawberry/commit/710bb96f47c244e78fc54c921802bcdb48f5f421.patch";
|
||||
url = "https://github.com/strawberry-graphql/strawberry/commit/710bb96f47c244e78fc54c921802bcdb48f5f421.patch";
|
||||
hash = "sha256-ekUZ2hDPCqwXp9n0YjBikwSkhCmVKUzQk7LrPECcD7Y=";
|
||||
})
|
||||
];
|
||||
@ -38,23 +73,65 @@ buildPythonPackage rec {
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [ graphql-core python-dateutil typing-extensions ];
|
||||
dependencies = [
|
||||
graphql-core
|
||||
python-dateutil
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
aiohttp = [ aiohttp pytest-aiohttp ];
|
||||
asgi = [ starlette python-multipart ];
|
||||
debug = [ rich libcst ];
|
||||
debug-server =
|
||||
[ typer libcst pygments python-multipart rich starlette uvicorn ];
|
||||
django = [ django pytest-django asgiref ];
|
||||
channels = [ channels asgiref ];
|
||||
flask = [ flask pytest-flask ];
|
||||
opentelemetry = [ opentelemetry-api opentelemetry-sdk ];
|
||||
aiohttp = [
|
||||
aiohttp
|
||||
pytest-aiohttp
|
||||
];
|
||||
asgi = [
|
||||
starlette
|
||||
python-multipart
|
||||
];
|
||||
debug = [
|
||||
rich
|
||||
libcst
|
||||
];
|
||||
debug-server = [
|
||||
typer
|
||||
libcst
|
||||
pygments
|
||||
python-multipart
|
||||
rich
|
||||
starlette
|
||||
uvicorn
|
||||
];
|
||||
django = [
|
||||
django
|
||||
pytest-django
|
||||
asgiref
|
||||
];
|
||||
channels = [
|
||||
channels
|
||||
asgiref
|
||||
];
|
||||
flask = [
|
||||
flask
|
||||
pytest-flask
|
||||
];
|
||||
opentelemetry = [
|
||||
opentelemetry-api
|
||||
opentelemetry-sdk
|
||||
];
|
||||
pydantic = [ pydantic ];
|
||||
sanic = [ sanic ];
|
||||
fastapi = [ fastapi python-multipart ];
|
||||
fastapi = [
|
||||
fastapi
|
||||
python-multipart
|
||||
];
|
||||
chalice = [ chalice ];
|
||||
cli = [ pygments rich libcst typer graphlib-backport ];
|
||||
cli = [
|
||||
pygments
|
||||
rich
|
||||
libcst
|
||||
typer
|
||||
graphlib-backport
|
||||
];
|
||||
# starlite = [ starlite ];
|
||||
# litestar = [ litestar ];
|
||||
pyinstrument = [ pyinstrument ];
|
||||
@ -96,8 +173,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "GraphQL library for Python that leverages type annotations";
|
||||
homepage = "https://strawberry.rocks";
|
||||
changelog =
|
||||
"https://github.com/strawberry-graphql/strawberry/blob/${version}/CHANGELOG.md";
|
||||
changelog = "https://github.com/strawberry-graphql/strawberry/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ izorkin ];
|
||||
mainProgram = "strawberry";
|
||||
|
Loading…
Reference in New Issue
Block a user