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.4.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "4a6f04112f2685a0a5cd8c7cb7946572bb7e0f6ca7cbe0088514006fca8594ca"; 21 }; 22 23 propagatedBuildInputs = [ 24 google-api-core 25 google-cloud-core 26 libcst 27 proto-plus 28 ]; 29 30 checkInputs = [ 31 google-cloud-testutils 32 mock 33 pytestCheckHook 34 pytest-asyncio 35 ]; 36 37 preCheck = '' 38 # directory shadows imports 39 rm -r google 40 ''; 41 42 disabledTestPaths = [ 43 # Requires credentials 44 "tests/system/test_allocate_reserve_ids.py" 45 "tests/system/test_query.py" 46 "tests/system/test_put.py" 47 "tests/system/test_transaction.py" 48 ]; 49 50 pythonImportsCheck = [ 51 "google.cloud.datastore" 52 "google.cloud.datastore_admin_v1" 53 "google.cloud.datastore_v1" 54 ]; 55 56 meta = with lib; { 57 description = "Google Cloud Datastore API client library"; 58 homepage = "https://github.com/googleapis/python-datastore"; 59 license = licenses.asl20; 60 maintainers = with maintainers; [ SuperSandro2000 ]; 61 }; 62}