Skip to content

Commit 593a8d9

Browse files
authored
python313Packages.reflex: 0.6.8 -> 0.7.1 (#385098)
2 parents d78c245 + 56c2a1a commit 593a8d9

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

pkgs/development/python-modules/reflex/default.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
buildPythonPackage rec {
4949
pname = "reflex";
50-
version = "0.6.8";
50+
version = "0.7.1";
5151
pyproject = true;
5252

5353
disabled = pythonOlder "3.10";
@@ -56,7 +56,7 @@ buildPythonPackage rec {
5656
owner = "reflex-dev";
5757
repo = "reflex";
5858
tag = "v${version}";
59-
hash = "sha256-fpFjVX48+FOnC3x7LT5DSXiUHpFLkD4gm/HGHZpS2ZY=";
59+
hash = "sha256-KPReHngB2qop+rar2hHFVAwnB5W2/GQi3kAP2kQolL8=";
6060
};
6161

6262
pythonRelaxDeps = [
@@ -133,10 +133,12 @@ buildPythonPackage rec {
133133
# flaky
134134
"test_preprocess" # KeyError: 'reflex___state____state'
135135
"test_send" # AssertionError: Expected 'post' to have been called once. Called 0 times.
136+
# tries to pin the string of a traceback, doesn't account for ansi colors
137+
"test_state_with_invalid_yield"
136138
];
137139

138140
disabledTestPaths = [
139-
"benchmarks/"
141+
"tests/benchmarks/"
140142
"tests/integration/"
141143
];
142144

pkgs/development/python-modules/starlette-admin/default.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,32 @@ buildPythonPackage rec {
4242
hash = "sha256-DoYD8Hc5pd68+BhASw3mwwCdhu0vYHiELjVmVwU8FHs=";
4343
};
4444

45+
# recreates https://github.com/jowilf/starlette-admin/pull/630 which cannot be cherry-picked
46+
postPatch = ''
47+
test_files_to_fix=(
48+
tests/mongoengine/test_auth.py
49+
tests/odmantic/test_async_engine.py
50+
tests/odmantic/test_auth.py
51+
tests/odmantic/test_sync_engine.py
52+
tests/sqla/test_async_engine.py
53+
tests/sqla/test_auth.py
54+
tests/sqla/test_multiple_pks.py
55+
tests/sqla/test_sqla_and_pydantic.py
56+
tests/sqla/test_sqla_utils.py
57+
tests/sqla/test_sqlmodel.py
58+
tests/sqla/test_sync_engine.py
59+
tests/sqla/test_view_serialization.py
60+
tests/test_auth.py
61+
)
62+
substituteInPlace "''${test_files_to_fix[@]}" \
63+
--replace-fail \
64+
'from httpx import AsyncClient' \
65+
'from httpx import AsyncClient, ASGITransport' \
66+
--replace-fail \
67+
'AsyncClient(app=app,' \
68+
'AsyncClient(transport=ASGITransport(app=app),'
69+
'';
70+
4571
build-system = [ hatchling ];
4672

4773
dependencies = [

0 commit comments

Comments
 (0)