1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, google_api_core
5, google_cloud_core
6, pytest
7}:
8
9buildPythonPackage rec {
10 pname = "google-cloud-firestore";
11 version = "0.31.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "5349d1a112dc8ff1b96d400a04ab18949503b542c72f526847e2066eef6cbc25";
16 };
17
18 checkInputs = [ pytest ];
19 propagatedBuildInputs = [ google_api_core google_cloud_core ];
20
21 # tests were not included with release
22 # See issue https://github.com/googleapis/google-cloud-python/issues/6380
23 doCheck = false;
24
25 checkPhase = ''
26 pytest tests/unit
27 '';
28
29 meta = with stdenv.lib; {
30 description = "Google Cloud Firestore API client library";
31 homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
32 license = licenses.asl20;
33 maintainers = [ maintainers.costrouc ];
34 };
35}