blob: ad563d84d50edf9cfb0163ca3e3e92c00e411c45 (
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
58
59
60
61
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
deprecation,
h2,
httpx,
poetry-core,
pydantic,
pytestCheckHook,
pythonPackages,
}:
buildPythonPackage rec {
pname = "postgrest";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "supabase";
repo = "postgrest-py";
tag = "v${version}";
hash = "sha256-WTS8J8XhHPSe6N1reY3j2QYHaRY1goiVoqQCUKSgbVY=";
};
build-system = [ poetry-core ];
dependencies = [
deprecation
httpx
pydantic
];
nativeCheckInputs = [
pytestCheckHook
h2
];
# Lots of tests fail without network access
disabledTestPaths = [
"tests/_async/test_client.py"
"tests/_async/test_filter_request_builder.py"
"tests/_async/test_filter_request_builder_integration.py"
"tests/_async/test_query_request_builder.py"
"tests/_async/test_request_builder.py"
"tests/_sync/test_filter_request_builder_integration.py"
];
disabledTests = [
"test_params_purged_after_execute"
];
pythonImportsCheck = [ "postgrest" ];
meta = {
description = "PostgREST client for Python, provides an ORM interface to PostgREST";
homepage = "https://github.com/supabase/postgrest-py";
changelog = "https://github.com/supabase/postgrest-py/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jherland ];
};
}
|