From 89a731729f1ca59d3be7a16387e071b3f5ca627c Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Mon, 20 Jan 2025 12:50:40 +0800 Subject: [PATCH] litestar: build for all python version --- pkgs/by-name/li/litestar/package.nix | 15 +++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++++ 2 files changed, 19 insertions(+) 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 c7b19bb4e7c209..cbad55021082f4 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 { };