1{ lib
2, buildPythonPackage
3, fetchPypi
4, aiounittest
5, google-api-core
6, google-cloud-testutils
7, google-cloud-core
8, mock
9, proto-plus
10, pytestCheckHook
11, pytest-asyncio
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-firestore";
16 version = "2.1.0";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-kG68fG9EqwvE72nzc89MXwEQ/YYEM9tYH6zK2iTCFJo=";
21 };
22
23 propagatedBuildInputs = [
24 google-api-core
25 google-cloud-core
26 proto-plus
27 ];
28
29 checkInputs = [
30 aiounittest
31 google-cloud-testutils
32 mock
33 pytestCheckHook
34 pytest-asyncio
35 ];
36
37 preCheck = ''
38 # do not shadow imports
39 rm -r google
40 '';
41
42 pytestFlagsArray = [
43 # tests are broken
44 "--ignore=tests/system/test_system.py"
45 "--ignore=tests/system/test_system_async.py"
46 ];
47
48 disabledTests = [
49 # requires credentials
50 "test_collections"
51 ];
52
53 pythonImportsCheck = [
54 "google.cloud.firestore_v1"
55 "google.cloud.firestore_admin_v1"
56 ];
57
58 meta = with lib; {
59 description = "Google Cloud Firestore API client library";
60 homepage = "https://github.com/googleapis/python-firestore";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ SuperSandro2000 ];
63 };
64}