python3Packages.litestar: use finalAttrs

This commit is contained in:
Gaetan Lepage
2026-02-01 10:48:36 +00:00
parent 8e2efe8a33
commit 41a2bfcf51
@@ -31,7 +31,6 @@
prometheus-client,
psutil,
opentelemetry-instrumentation-asgi,
psycopg,
pydantic-extra-types,
pydantic,
email-validator,
@@ -47,6 +46,7 @@
# valkey,
# tests
addBinToPathHook,
httpx-sse,
pytest-asyncio,
pytest-lazy-fixtures,
@@ -59,7 +59,7 @@
versionCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "litestar";
version = "2.18.0";
pyproject = true;
@@ -67,7 +67,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "litestar-org";
repo = "litestar";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-bqj7tvCNeMEEJKDF3g2beKfd0urbNszrbLdF96JygYk=";
};
@@ -127,6 +127,7 @@ buildPythonPackage rec {
};
nativeCheckInputs = [
addBinToPathHook
httpx-sse
pytest-asyncio
pytest-lazy-fixtures
@@ -144,10 +145,6 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
preCheck = ''
export PATH=$out/bin:$PATH
'';
enabledTestPaths = [
# Follow GitHub CI
"docs/examples/"
@@ -161,10 +158,10 @@ buildPythonPackage rec {
meta = {
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}";
changelog = "https://github.com/litestar-org/litestar/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
mainProgram = "litestar";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
platforms = lib.platforms.unix;
};
}
})