python313Packages.reflex: 0.6.8 -> 0.7.1 (#385098)

This commit is contained in:
Fabian Affolter
2025-02-26 19:58:34 +01:00
committed by GitHub
2 changed files with 31 additions and 3 deletions
@@ -47,7 +47,7 @@
buildPythonPackage rec {
pname = "reflex";
version = "0.6.8";
version = "0.7.1";
pyproject = true;
disabled = pythonOlder "3.10";
@@ -56,7 +56,7 @@ buildPythonPackage rec {
owner = "reflex-dev";
repo = "reflex";
tag = "v${version}";
hash = "sha256-fpFjVX48+FOnC3x7LT5DSXiUHpFLkD4gm/HGHZpS2ZY=";
hash = "sha256-KPReHngB2qop+rar2hHFVAwnB5W2/GQi3kAP2kQolL8=";
};
pythonRelaxDeps = [
@@ -133,10 +133,12 @@ buildPythonPackage rec {
# flaky
"test_preprocess" # KeyError: 'reflex___state____state'
"test_send" # AssertionError: Expected 'post' to have been called once. Called 0 times.
# tries to pin the string of a traceback, doesn't account for ansi colors
"test_state_with_invalid_yield"
];
disabledTestPaths = [
"benchmarks/"
"tests/benchmarks/"
"tests/integration/"
];
@@ -42,6 +42,32 @@ buildPythonPackage rec {
hash = "sha256-DoYD8Hc5pd68+BhASw3mwwCdhu0vYHiELjVmVwU8FHs=";
};
# recreates https://github.com/jowilf/starlette-admin/pull/630 which cannot be cherry-picked
postPatch = ''
test_files_to_fix=(
tests/mongoengine/test_auth.py
tests/odmantic/test_async_engine.py
tests/odmantic/test_auth.py
tests/odmantic/test_sync_engine.py
tests/sqla/test_async_engine.py
tests/sqla/test_auth.py
tests/sqla/test_multiple_pks.py
tests/sqla/test_sqla_and_pydantic.py
tests/sqla/test_sqla_utils.py
tests/sqla/test_sqlmodel.py
tests/sqla/test_sync_engine.py
tests/sqla/test_view_serialization.py
tests/test_auth.py
)
substituteInPlace "''${test_files_to_fix[@]}" \
--replace-fail \
'from httpx import AsyncClient' \
'from httpx import AsyncClient, ASGITransport' \
--replace-fail \
'AsyncClient(app=app,' \
'AsyncClient(transport=ASGITransport(app=app),'
'';
build-system = [ hatchling ];
dependencies = [