diff --git a/pkgs/development/python-modules/reflex/default.nix b/pkgs/development/python-modules/reflex/default.nix index 390e69d89946..7c9bb2caa14b 100644 --- a/pkgs/development/python-modules/reflex/default.nix +++ b/pkgs/development/python-modules/reflex/default.nix @@ -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/" ]; diff --git a/pkgs/development/python-modules/starlette-admin/default.nix b/pkgs/development/python-modules/starlette-admin/default.nix index a60768ef4220..5ff77b3a6488 100644 --- a/pkgs/development/python-modules/starlette-admin/default.nix +++ b/pkgs/development/python-modules/starlette-admin/default.nix @@ -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 = [