diff --git a/pkgs/by-name/li/litestar/package.nix b/pkgs/by-name/li/litestar/package.nix index 14d597236c96a0..3aed08801b3a84 100644 --- a/pkgs/by-name/li/litestar/package.nix +++ b/pkgs/by-name/li/litestar/package.nix @@ -45,6 +45,21 @@ python3Packages.buildPythonApplication rec { picologging ]; + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + pytest-lazy-fixtures + pytest-xdist + pytest-mock + pytest-asyncio + pytest-timeout + pytest-rerunfailures + ]; + + pytestFlagsArray = [ + # Follow github CI + "docs/examples/" + ]; + meta = { homepage = "https://litestar.dev/"; platforms = lib.platforms.unix; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5a8874b6eeb7a2..6969c03ce67370 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7544,6 +7544,10 @@ self: super: with self; { litemapy = callPackage ../development/python-modules/litemapy { }; + litestar = toPythonModule (pkgs.litestar.override { + python3Packages = pythonPackages; + }); + litestar-htmx = callPackage ../development/python-modules/litestar-htmx { }; littleutils = callPackage ../development/python-modules/littleutils { };