From ec058a1565c55ffa338e1b9bbc853389b3827c9f Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 25 Dec 2024 21:12:05 +0800 Subject: [PATCH 1/4] python312Packages.litestar-htmx: init at 0.4.1 --- .../python-modules/litestar-htmx/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/litestar-htmx/default.nix diff --git a/pkgs/development/python-modules/litestar-htmx/default.nix b/pkgs/development/python-modules/litestar-htmx/default.nix new file mode 100644 index 0000000000000..2eec220ce2c9a --- /dev/null +++ b/pkgs/development/python-modules/litestar-htmx/default.nix @@ -0,0 +1,32 @@ +{ + buildPythonPackage, + lib, + fetchPypi, + hatchling, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "litestar-htmx"; + version = "0.4.1"; + + src = fetchPypi { + pname = "litestar_htmx"; + inherit version; + hash = "sha256-uiU3AI64zBi/yL7lzssoCSTHgYuxwGbXnq5LIhaWygg="; + }; + + pyproject = true; + + build-system = [ + hatchling + ]; + + meta = { + homepage = "https://docs.litestar.dev/latest/usage/htmx.html"; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + license = lib.licenses.asl20; + platforms = lib.platforms.unix; + description = "HTMX Integration for Litesstar"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f15d0ec2bb3ef..472da6127bb50 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7517,6 +7517,8 @@ self: super: with self; { litemapy = callPackage ../development/python-modules/litemapy { }; + litestar-htmx = callPackage ../development/python-modules/litestar-htmx { }; + littleutils = callPackage ../development/python-modules/littleutils { }; livelossplot = callPackage ../development/python-modules/livelossplot { }; From e0edb71e2cabd5d627d801a275f9efc6c1d57383 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 25 Dec 2024 21:26:38 +0800 Subject: [PATCH 2/4] python312Packages.polyfactory: 2.18.1 -> 2.18.1-unstable-2024-12-22 --- .../python-modules/polyfactory/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/polyfactory/default.nix b/pkgs/development/python-modules/polyfactory/default.nix index d0adce39c0cd5..d3e1fb11e33d0 100644 --- a/pkgs/development/python-modules/polyfactory/default.nix +++ b/pkgs/development/python-modules/polyfactory/default.nix @@ -1,7 +1,7 @@ { buildPythonPackage, lib, - fetchPypi, + fetchFromGitHub, hatchling, hypothesis, faker, @@ -14,16 +14,19 @@ pydantic, pytestCheckHook, email-validator, + pytest-lazy-fixtures, }: buildPythonPackage rec { pname = "polyfactory"; - version = "2.18.1"; + version = "2.18.1-unstable-2024-12-22"; pyproject = true; - src = fetchPypi { - inherit version pname; - hash = "sha256-F8nbGK/k+4192OW6KW5p2g/PfQ87Y9GEDrENE1rtWq0="; + src = fetchFromGitHub { + owner = "litestar-org"; + repo = "polyfactory"; + rev = "d6a886a4f3b33c77774e14ec190531128ce504c2"; + hash = "sha256-w13pgxVAUY/THSpwktqVgfQiGeSar9iGpzXeWv6I/vA="; }; build-system = [ hatchling ]; From 96380f22af0380741f20db1e5ba43c76fdd5d267 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 25 Dec 2024 21:30:54 +0800 Subject: [PATCH 3/4] litestar: 2.12.1 -> 2.13.0 --- pkgs/by-name/li/litestar/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/li/litestar/package.nix b/pkgs/by-name/li/litestar/package.nix index 66c9dc2ccdd63..14d597236c96a 100644 --- a/pkgs/by-name/li/litestar/package.nix +++ b/pkgs/by-name/li/litestar/package.nix @@ -6,7 +6,7 @@ python3Packages.buildPythonApplication rec { pname = "litestar"; - version = "2.12.1"; + version = "2.13.0"; pyproject = true; build-system = with python3Packages; [ @@ -16,8 +16,8 @@ python3Packages.buildPythonApplication rec { src = fetchFromGitHub { owner = "litestar-org"; repo = "litestar"; - rev = "refs/tags/v${version}"; - hash = "sha256-bWo+hhSij0H9XGxpqg1/h7O8U8jjTmlaIHfCU5I4RSI="; + tag = "v${version}"; + hash = "sha256-PR2DVNRtILHs7XwVi9/ZCVRJQFqfGLn1x2gpYtYjHDo="; }; dependencies = with python3Packages; [ @@ -34,6 +34,7 @@ python3Packages.buildPythonApplication rec { typing-extensions psutil polyfactory + litestar-htmx trio cryptography psycopg From 46717f4547bb1e9411dda473d152a2d2d5461a39 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Thu, 26 Dec 2024 12:42:40 +0800 Subject: [PATCH 4/4] python312Packages.weaviate-client: disabled failed test --- pkgs/development/python-modules/weaviate-client/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/weaviate-client/default.nix b/pkgs/development/python-modules/weaviate-client/default.nix index a8b18ad3bf552..9aaf080a78633 100644 --- a/pkgs/development/python-modules/weaviate-client/default.nix +++ b/pkgs/development/python-modules/weaviate-client/default.nix @@ -81,6 +81,7 @@ buildPythonPackage rec { disabledTests = [ # Need network "test_bearer_token" + "test_auth_header_with_catchall_proxy" "test_token_refresh_timeout" "test_with_simple_auth_no_oidc_via_api_key" "test_client_with_extra_options"