summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiege <15473103+Siegema@users.noreply.github.com>2025-07-18 22:32:14 -0400
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-07-31 14:48:59 +0000
commitccff2d3fb0389b96ff3c88ccace78727f222c7e4 (patch)
tree1a0216afe26dd7037fed81859909f9dfdfc4e935
parentgotrue: init at 2.12.0 (diff)
downloadnixpkgs-origin/backport-398562-to-release-25.05.tar.gz
(cherry picked from commit 1bb0ea9c9eb9da4df23efd6f416075df30f8b236)
-rw-r--r--pkgs/development/python-modules/supabase/default.nix58
-rw-r--r--pkgs/top-level/python-packages.nix2
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 { };