1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-core
6, libcst
7, proto-plus
8, mock
9, pytestCheckHook
10, pytest-asyncio
11, google-cloud-testutils
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-datastore";
16 version = "2.1.0";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "1yyk9ix1jms5q4kk76cfxzy42wzzyl5qladdswjy5l0pg6iypr8i";
21 };
22
23 propagatedBuildInputs = [ google-api-core google-cloud-core libcst proto-plus ];
24
25 checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
26
27 preCheck = ''
28 # directory shadows imports
29 rm -r google
30 # requires credentials
31 rm tests/system/test_system.py
32 '';
33
34 pythonImportsCheck = [
35 "google.cloud.datastore"
36 "google.cloud.datastore_admin_v1"
37 "google.cloud.datastore_v1"
38 ];
39
40 meta = with lib; {
41 description = "Google Cloud Datastore API client library";
42 homepage = "https://github.com/googleapis/python-datastore";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ SuperSandro2000 ];
45 };
46}