diff options
| author | Siege <15473103+Siegema@users.noreply.github.com> | 2025-07-18 22:32:14 -0400 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-07-31 14:48:59 +0000 |
| commit | ccff2d3fb0389b96ff3c88ccace78727f222c7e4 (patch) | |
| tree | 1a0216afe26dd7037fed81859909f9dfdfc4e935 | |
| parent | gotrue: init at 2.12.0 (diff) | |
| download | nixpkgs-origin/backport-398562-to-release-25.05.tar.gz | |
supabase: init at 2.16.0origin/backport-398562-to-release-25.05
(cherry picked from commit 1bb0ea9c9eb9da4df23efd6f416075df30f8b236)
| -rw-r--r-- | pkgs/development/python-modules/supabase/default.nix | 58 | ||||
| -rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/supabase/default.nix b/pkgs/development/python-modules/supabase/default.nix new file mode 100644 index 000000000000..ddfb3e461ca9 --- /dev/null +++ b/pkgs/development/python-modules/supabase/default.nix @@ -0,0 +1,58 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + gotrue, + postgrest-py, + realtime, + storage3, + supafunc, + httpx, + pytestCheckHook, + python-dotenv, + pytest-asyncio, + pydantic, +}: + +buildPythonPackage rec { + pname = "supabase-py"; + version = "2.16.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "supabase"; + repo = "supabase-py"; + rev = "v${version}"; + hash = "sha256-n+LVC4R9m/BKID9wLEMw/y/2I589TUXTygSIPfTZwB8="; + }; + + build-system = [ poetry-core ]; + + propagatedBuildInputs = [ + postgrest-py + realtime + gotrue + httpx + storage3 + supafunc + pydantic + ]; + + nativeBuildInputs = [ + pytestCheckHook + python-dotenv + pytest-asyncio + ]; + + pythonImportsCheck = [ "supabase" ]; + + doCheck = true; + + meta = { + homepage = "https://github.com/supabase/supabase-py"; + license = lib.licenses.mit; + description = "Supabas client for Python"; + maintainers = with lib.maintainers; [ siegema ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 12e8cdab1615..951435ebdc04 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16904,6 +16904,8 @@ self: super: with self; { sunweg = callPackage ../development/python-modules/sunweg { }; + supabase = callPackage ../development/python-modules/supabase { }; + supabase-functions = self.supafunc; supafunc = callPackage ../development/python-modules/supafunc { }; |
