python313Packages.litestar: refactor
This commit is contained in:
@@ -7,37 +7,55 @@
|
|||||||
hatchling,
|
hatchling,
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
annotated-types,
|
||||||
anyio,
|
anyio,
|
||||||
asyncpg,
|
asyncpg,
|
||||||
|
attrs,
|
||||||
|
brotli,
|
||||||
click,
|
click,
|
||||||
cryptography,
|
cryptography,
|
||||||
fsspec,
|
fsspec,
|
||||||
httpx,
|
httpx,
|
||||||
jinja2,
|
jinja2,
|
||||||
|
jsbeautifier,
|
||||||
litestar-htmx,
|
litestar-htmx,
|
||||||
mako,
|
mako,
|
||||||
|
minijinja,
|
||||||
|
fast-query-parsers,
|
||||||
msgspec,
|
msgspec,
|
||||||
multidict,
|
multidict,
|
||||||
|
multipart,
|
||||||
picologging,
|
picologging,
|
||||||
polyfactory,
|
polyfactory,
|
||||||
|
piccolo,
|
||||||
|
prometheus-client,
|
||||||
psutil,
|
psutil,
|
||||||
|
opentelemetry-instrumentation-asgi,
|
||||||
psycopg,
|
psycopg,
|
||||||
|
pydantic-extra-types,
|
||||||
|
pydantic,
|
||||||
|
email-validator,
|
||||||
|
pyjwt,
|
||||||
pyyaml,
|
pyyaml,
|
||||||
redis,
|
redis,
|
||||||
rich,
|
|
||||||
rich-click,
|
rich-click,
|
||||||
|
rich,
|
||||||
|
structlog,
|
||||||
time-machine,
|
time-machine,
|
||||||
trio,
|
|
||||||
typing-extensions,
|
typing-extensions,
|
||||||
|
uvicorn,
|
||||||
|
valkey,
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
pytestCheckHook,
|
httpx-sse,
|
||||||
pytest-lazy-fixtures,
|
|
||||||
pytest-xdist,
|
|
||||||
pytest-mock,
|
|
||||||
pytest-asyncio,
|
pytest-asyncio,
|
||||||
pytest-timeout,
|
pytest-lazy-fixtures,
|
||||||
|
pytest-mock,
|
||||||
pytest-rerunfailures,
|
pytest-rerunfailures,
|
||||||
|
pytest-timeout,
|
||||||
|
pytest-xdist,
|
||||||
|
pytestCheckHook,
|
||||||
|
trio,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@@ -53,61 +71,100 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-67O/NxPBBLa1QfH1o9laOAQEin8jRA8SkcV7QEzCjI0=";
|
hash = "sha256-67O/NxPBBLa1QfH1o9laOAQEin8jRA8SkcV7QEzCjI0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [
|
build-system = [ hatchling ];
|
||||||
hatchling
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
anyio
|
anyio
|
||||||
asyncpg
|
asyncpg
|
||||||
click
|
click
|
||||||
cryptography
|
fast-query-parsers
|
||||||
fsspec
|
fsspec
|
||||||
httpx
|
httpx
|
||||||
jinja2
|
|
||||||
litestar-htmx
|
litestar-htmx
|
||||||
mako
|
|
||||||
msgspec
|
msgspec
|
||||||
multidict
|
multidict
|
||||||
picologging
|
multipart
|
||||||
polyfactory
|
polyfactory
|
||||||
psutil
|
psutil
|
||||||
psycopg
|
|
||||||
pyyaml
|
pyyaml
|
||||||
redis
|
|
||||||
rich
|
rich
|
||||||
rich-click
|
rich-click
|
||||||
time-machine
|
|
||||||
trio
|
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
optional-dependencies = {
|
||||||
|
annotated-types = [ annotated-types ];
|
||||||
|
attrs = [ attrs ];
|
||||||
|
brotli = [ brotli ];
|
||||||
|
cli = [
|
||||||
|
jsbeautifier
|
||||||
|
uvicorn
|
||||||
|
];
|
||||||
|
cryptography = [ cryptography ];
|
||||||
|
htmx = [ litestar-htmx ];
|
||||||
|
jinja = [ jinja2 ];
|
||||||
|
jwt = [
|
||||||
|
cryptography
|
||||||
|
pyjwt
|
||||||
|
];
|
||||||
|
mako = [ mako ];
|
||||||
|
minijinja = [ minijinja ];
|
||||||
|
opentelemetry = [ opentelemetry-instrumentation-asgi ];
|
||||||
|
piccolo = [ piccolo ];
|
||||||
|
picologging = [ picologging ];
|
||||||
|
polyfactory = [ polyfactory ];
|
||||||
|
prometheus = [ prometheus-client ];
|
||||||
|
pydantic = [
|
||||||
|
pydantic
|
||||||
|
email-validator
|
||||||
|
pydantic-extra-types
|
||||||
|
];
|
||||||
|
redis = [ redis ] ++ redis.optional-dependencies.hiredis;
|
||||||
|
# sqlalchemy = [ advanced-alchemy ];
|
||||||
|
structlog = [ structlog ];
|
||||||
|
valkey = [ valkey ] ++ valkey.optional-dependencies.libvalkey;
|
||||||
|
yaml = [ pyyaml ];
|
||||||
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
httpx-sse
|
||||||
pytest-lazy-fixtures
|
|
||||||
pytest-xdist
|
|
||||||
pytest-mock
|
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-timeout
|
pytest-lazy-fixtures
|
||||||
|
pytest-mock
|
||||||
pytest-rerunfailures
|
pytest-rerunfailures
|
||||||
|
pytest-timeout
|
||||||
|
pytest-xdist
|
||||||
|
pytestCheckHook
|
||||||
|
time-machine
|
||||||
|
trio
|
||||||
versionCheckHook
|
versionCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
versionCheckProgramArg = "version";
|
versionCheckProgramArg = "version";
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export PATH=$out/bin:$PATH
|
||||||
|
'';
|
||||||
|
|
||||||
enabledTestPaths = [
|
enabledTestPaths = [
|
||||||
# Follow github CI
|
# Follow GitHub CI
|
||||||
"docs/examples/"
|
"docs/examples/"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# StartupError
|
||||||
|
"test_subprocess_async_client"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://litestar.dev/";
|
|
||||||
platforms = lib.platforms.unix;
|
|
||||||
maintainers = with lib.maintainers; [ bot-wxt1221 ];
|
|
||||||
changelog = "https://github.com/litestar-org/litestar/releases/tag/${src.tag}";
|
|
||||||
description = "Production-ready, Light, Flexible and Extensible ASGI API framework";
|
description = "Production-ready, Light, Flexible and Extensible ASGI API framework";
|
||||||
|
homepage = "https://litestar.dev/";
|
||||||
|
changelog = "https://github.com/litestar-org/litestar/releases/tag/${src.tag}";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
mainProgram = "litestar";
|
mainProgram = "litestar";
|
||||||
|
maintainers = with lib.maintainers; [ bot-wxt1221 ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user