biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-firestore / default.nix
blob2c3dcdf790632df3c5305210c52d8a77a79abcf8
2   lib,
3   aiounittest,
4   buildPythonPackage,
5   fetchPypi,
6   freezegun,
7   google-api-core,
8   google-cloud-core,
9   google-cloud-testutils,
10   mock,
11   proto-plus,
12   protobuf,
13   pytest-asyncio,
14   pytestCheckHook,
15   pythonOlder,
16   setuptools,
19 buildPythonPackage rec {
20   pname = "google-cloud-firestore";
21   version = "2.19.0";
22   pyproject = true;
24   disabled = pythonOlder "3.7";
26   src = fetchPypi {
27     pname = "google_cloud_firestore";
28     inherit version;
29     hash = "sha256-Gyzm4LeRruiaHk8HK+uhASJH6Juso2Hu1yH7Rn/gVLA=";
30   };
32   build-system = [ setuptools ];
34   dependencies = [
35     google-api-core
36     google-cloud-core
37     proto-plus
38     protobuf
39   ] ++ google-api-core.optional-dependencies.grpc;
41   nativeCheckInputs = [
42     aiounittest
43     freezegun
44     google-cloud-testutils
45     mock
46     pytest-asyncio
47     pytestCheckHook
48   ];
50   preCheck = ''
51     # do not shadow imports
52     rm -r google
53   '';
55   disabledTestPaths = [
56     # Tests are broken
57     "tests/system/test_system.py"
58     "tests/system/test_system_async.py"
59     # Test requires credentials
60     "tests/unit/v1/test_bulk_writer.py"
61   ];
63   disabledTests = [
64     # Test requires credentials
65     "test_collections"
66   ];
68   pythonImportsCheck = [
69     "google.cloud.firestore_v1"
70     "google.cloud.firestore_admin_v1"
71   ];
73   meta = with lib; {
74     description = "Google Cloud Firestore API client library";
75     homepage = "https://github.com/googleapis/python-firestore";
76     changelog = "https://github.com/googleapis/python-firestore/blob/v${version}/CHANGELOG.md";
77     license = licenses.asl20;
78     maintainers = [ ];
79   };