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.7.2"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-yGB6dLcRxEuqPYGEbpOI5DInos/1ILWmzeXN+ck/W+g="; 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 disabledTestPaths = [ 43 # Tests are broken 44 "tests/system/test_system.py" 45 "tests/system/test_system_async.py" 46 # requires credentials 47 "tests/unit/v1/test_bulk_writer.py" 48 ]; 49 50 disabledTests = [ 51 # requires credentials 52 "test_collections" 53 ]; 54 55 pythonImportsCheck = [ 56 "google.cloud.firestore_v1" 57 "google.cloud.firestore_admin_v1" 58 ]; 59 60 meta = with lib; { 61 description = "Google Cloud Firestore API client library"; 62 homepage = "https://github.com/googleapis/python-firestore"; 63 license = licenses.asl20; 64 maintainers = with maintainers; [ SuperSandro2000 ]; 65 }; 66}