Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/postgrest/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ lib
, pkgs
, python3Packages
, fetchPypi
, poetry-core
}:

python3Packages.buildPythonPackage rec {
pname = "postgrest";
version = "0.16.2";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-bFyOU83O3otmVN38dQXlrwxBzlbGk197HQVUW7iZ2Lg=";
};

propagatedBuildInputs = with python3Packages; [
httpx
deprecation
pydantic
strenum
];

nativeBuildInputs = with python3Packages; [
poetry-core
];


# tests are not in pypi package
doCheck = false;


meta = with lib; {
homepage = "https://github.com/supabase-community/auth-py";
license = licenses.mit;
description = "Python Postgrest Client for Supabase";
mainProgram = "postgrest";
maintainers = with maintainers; [ samrose ];
};
}
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/realtime/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib
, pkgs
, python3Packages
, fetchPypi
, poetry-core
}:

python3Packages.buildPythonPackage rec {
pname = "realtime";
version = "1.0.3";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-Gjm13Ns0W0zH/UO8A1/rOMqRXJJIli8g0mRiW8jrLE4=";
};

propagatedBuildInputs = with python3Packages; [
python-dateutil
typing-extensions
websockets
];

nativeBuildInputs = with python3Packages; [
poetry-core
];


# tests are not in pypi package
doCheck = false;


meta = with lib; {
homepage = "https://github.com/supabase-community/auth-py";
license = licenses.mit;
description = "Python Realtime Client for Supabase";
mainProgram = "realtime";
maintainers = with maintainers; [ samrose ];
};
}
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/storage3/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib
, pkgs
, python3Packages
, fetchPypi
, poetry-core
}:

python3Packages.buildPythonPackage rec {
pname = "storage3";
version = "0.7.4";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-Yfy/g29WZAWYFyKrt9VsqlcCWyYeejFuczFnAavwwEA=";
};

propagatedBuildInputs = with python3Packages; [
python-dateutil
typing-extensions
httpx
];

nativeBuildInputs = with python3Packages; [
poetry-core
];


# tests are not in pypi package
doCheck = false;


meta = with lib; {
homepage = "https://github.com/supabase-community/auth-py";
license = licenses.mit;
description = "Python Storage Client for Supabase";
mainProgram = "storage3";
maintainers = with maintainers; [ samrose ];
};
}
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/supabase/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ lib
, pkgs
, python3Packages
, fetchPypi
, poetry-core
}:

python3Packages.buildPythonPackage rec {
pname = "supabase";
version = "2.4.1";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-p97AWG+JMfN4pFsv+yjY43s3Gfl5wX9UGwFWAZFE5kU=";
};

nativeBuildInputs = with python3Packages; [
poetry-core
];

propagatedBuildInputs = with python3Packages; [
supabase_auth
httpx
postgrest
realtime
storage3
supafunc
];

# tests are not in pypi package
doCheck = false;

meta = with lib; {
homepage = "https://github.com/supabase-community/supabase-py";
license = licenses.mit;
description = "Python Client for Supabase";
mainProgram = "supabase";
maintainers = with maintainers; [ samrose ];
};
}
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/supabase_auth/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib
, pkgs
, python3Packages
, fetchPypi
, poetry-core
}:

python3Packages.buildPythonPackage rec {
pname = "gotrue";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@risicle it's had a recent name change, but I guess we'd want to use the name as found pypi, so I'll revise. Thanks!

version = "2.4.2";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-4QB0UWHxxY3QW5we+LzUzXjN+zjY0sJTreYxQ6Pcaus=";
};

propagatedBuildInputs = with python3Packages; [
httpx
pyjwt
pydantic
];

nativeBuildInputs = with python3Packages; [
poetry-core
];


# tests are not in pypi package
doCheck = false;


meta = with lib; {
homepage = "https://github.com/supabase-community/auth-py";
license = licenses.mit;
description = "Python Auth Client for Supabase";
mainProgram = "gotrue";
maintainers = with maintainers; [ samrose ];
};
}
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/supafunc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, pkgs
, python3Packages
, fetchPypi
, poetry-core
}:

python3Packages.buildPythonPackage rec {
pname = "supafunc";
version = "0.4.5";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-pkZteL3KpYt/AwN5NkMQO6roEGqHrNXQHhlheanQ0CQ=";
};

nativeBuildInputs = with python3Packages; [
poetry-core
];

propagatedBuildInputs = with python3Packages; [
httpx
];

# tests are not in pypi package
doCheck = false;

meta = with lib; {
homepage = "https://github.com/supabase-community/supabase-py";
license = licenses.mit;
description = "Python edge function client for Supabase";
mainProgram = "supafunc";
maintainers = with maintainers; [ samrose ];
};
}
12 changes: 12 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10153,6 +10153,8 @@ self: super: with self; {

posix-ipc = callPackage ../development/python-modules/posix-ipc { };

postgrest = callPackage ../development/python-modules/postgrest { };

posthog = callPackage ../development/python-modules/posthog { };

pot = callPackage ../development/python-modules/pot { };
Expand Down Expand Up @@ -12916,6 +12918,8 @@ self: super: with self; {

reactivex = callPackage ../development/python-modules/reactivex { };

realtime = callPackage ../development/python-modules/realtime { };

rebulk = callPackage ../development/python-modules/rebulk { };

recipe-scrapers = callPackage ../development/python-modules/recipe-scrapers { };
Expand Down Expand Up @@ -14394,6 +14398,8 @@ self: super: with self; {

stopit = callPackage ../development/python-modules/stopit { };

storage3 = callPackage ../development/python-modules/storage3 { };

stransi = callPackage ../development/python-modules/stransi { };

strategies = callPackage ../development/python-modules/strategies { };
Expand Down Expand Up @@ -14496,6 +14502,12 @@ self: super: with self; {

supervisor = callPackage ../development/python-modules/supervisor { };

supabase_auth = callPackage ../development/python-modules/supabase_auth { };

supabase-py = callPackage ../development/python-modules/supabase { };

supafunc = callPackage ../development/python-modules/supafunc { };

superqt = callPackage ../development/python-modules/superqt { };

sure = callPackage ../development/python-modules/sure { };
Expand Down