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