1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 gotrue,
7 postgrest-py,
8 realtime,
9 storage3,
10 supafunc,
11 httpx,
12 pytestCheckHook,
13 python-dotenv,
14 pytest-asyncio,
15 pydantic,
16}:
17
18buildPythonPackage rec {
19 pname = "supabase-py";
20 version = "2.16.0";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "supabase";
25 repo = "supabase-py";
26 rev = "v${version}";
27 hash = "sha256-n+LVC4R9m/BKID9wLEMw/y/2I589TUXTygSIPfTZwB8=";
28 };
29
30 build-system = [ poetry-core ];
31
32 propagatedBuildInputs = [
33 postgrest-py
34 realtime
35 gotrue
36 httpx
37 storage3
38 supafunc
39 pydantic
40 ];
41
42 nativeBuildInputs = [
43 pytestCheckHook
44 python-dotenv
45 pytest-asyncio
46 ];
47
48 pythonImportsCheck = [ "supabase" ];
49
50 doCheck = true;
51
52 meta = {
53 homepage = "https://github.com/supabase/supabase-py";
54 license = lib.licenses.mit;
55 description = "Supabas client for Python";
56 maintainers = with lib.maintainers; [ siegema ];
57 };
58}