Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

litestar: 2.12.1 -> 2.13.0 #368121

Merged
merged 4 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pkgs/by-name/li/litestar/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

python3Packages.buildPythonApplication rec {
pname = "litestar";
version = "2.12.1";
version = "2.13.0";
pyproject = true;

build-system = with python3Packages; [
Expand All @@ -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; [
Expand All @@ -34,6 +34,7 @@ python3Packages.buildPythonApplication rec {
typing-extensions
psutil
polyfactory
litestar-htmx
trio
cryptography
psycopg
Expand Down
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/litestar-htmx/default.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
13 changes: 8 additions & 5 deletions pkgs/development/python-modules/polyfactory/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
buildPythonPackage,
lib,
fetchPypi,
fetchFromGitHub,
hatchling,
hypothesis,
faker,
Expand All @@ -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 ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down
Loading