diff --git a/pkgs/development/python-modules/reflex-chakra/default.nix b/pkgs/development/python-modules/reflex-chakra/default.nix new file mode 100644 index 0000000000000..5e0e34f8923c8 --- /dev/null +++ b/pkgs/development/python-modules/reflex-chakra/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "reflex-chakra"; + version = "0.5.10"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "reflex-dev"; + repo = "reflex-chakra"; + rev = "refs/tags/v${version}"; + hash = "sha256-EEU2BdkAJ3jPGMUCfXprUIGTXRbOK+uFtoWmjrBsclY="; + }; + + pythonRemoveDeps = [ + # Circular dependency + "reflex" + ]; + + build-system = [ poetry-core ]; + + # pythonImportsCheck = [ "reflex_chakra" ]; + + doCheck = false; + + meta = with lib; { + description = "Chakra Implementation in Reflex"; + homepage = "https://github.com/reflex-dev/reflex-chakra"; + changelog = "https://github.com/reflex-dev/reflex-chakra/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/reflex/default.nix b/pkgs/development/python-modules/reflex/default.nix index 75b5198e0663e..4477af34fad96 100644 --- a/pkgs/development/python-modules/reflex/default.nix +++ b/pkgs/development/python-modules/reflex/default.nix @@ -27,7 +27,9 @@ python-engineio, python-multipart, python-socketio, + pythonOlder, redis, + reflex-chakra, reflex-hosting-cli, rich, sqlmodel, @@ -44,17 +46,23 @@ buildPythonPackage rec { pname = "reflex"; - version = "0.5.9"; + version = "0.5.10"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "reflex-dev"; repo = "reflex"; - rev = "v${version}"; - hash = "sha256-QeEggHPilCLjUQ76AYDkqdf1iWLwCyAYTnf17RdhDq0="; + rev = "refs/tags/v${version}"; + hash = "sha256-8nwVB5FthDbhQRO663vRTqT8KPtStbdSgEoZ75EnhmE="; }; - pythonRelaxDeps = [ "fastapi" ]; + pythonRelaxDeps = [ + "fastapi" + "gunicorn" + ]; + pythonRemoveDeps = [ "setuptools" "build" @@ -80,6 +88,7 @@ buildPythonPackage rec { python-multipart python-socketio redis + reflex-chakra reflex-hosting-cli rich sqlmodel @@ -106,7 +115,7 @@ buildPythonPackage rec { ]; disabledTests = [ - # touches network + # Tests touche network "test_find_and_check_urls" "test_event_actions" "test_upload_file" @@ -118,6 +127,7 @@ buildPythonPackage rec { "test_preprocess" # KeyError: 'reflex___state____state' "test_send" # AssertionError: Expected 'post' to have been called once. Called 0 times. ]; + disabledTestPaths = [ "benchmarks/" "integration/" diff --git a/pkgs/development/python-modules/sqlmodel/default.nix b/pkgs/development/python-modules/sqlmodel/default.nix index 5b39b5b89bc48..89f19b1e65057 100644 --- a/pkgs/development/python-modules/sqlmodel/default.nix +++ b/pkgs/development/python-modules/sqlmodel/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "sqlmodel"; - version = "0.0.21"; + version = "0.0.22"; pyproject = true; disabled = pythonOlder "3.7"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "tiangolo"; repo = "sqlmodel"; rev = "refs/tags/${version}"; - hash = "sha256-8Lw3UHHDs/jn65JHGh3bQOQJeNiSnjdc10yRQrwIC/8="; + hash = "sha256-y6lY6DlfdCF5dliRkiU6r+ny/a9ssDtqRmF+/rcKFkg="; }; patches = [ diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 36dcac04277e6..4c04ff4a3740f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13662,6 +13662,8 @@ self: super: with self; { reflex = callPackage ../development/python-modules/reflex { }; + reflex-chakra = callPackage ../development/python-modules/reflex-chakra { }; + reflex-hosting-cli = callPackage ../development/python-modules/reflex-hosting-cli { }; reflink = callPackage ../development/python-modules/reflink { };