1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, google-api-core 6, google-cloud-testutils 7, grpc-google-iam-v1 8, libcst 9, mock 10, proto-plus 11, pytest-asyncio 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-pubsub"; 16 version = "2.9.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "2b3d9336afab0e5df67201234976519a28da3ccb7c9a0e463be28e2827a9fdaa"; 21 }; 22 23 propagatedBuildInputs = [ 24 grpc-google-iam-v1 25 google-api-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 # prevent google directory from shadowing google imports 39 rm -r google 40 ''; 41 42 disabledTestPaths = [ 43 # Tests in pubsub_v1 attempt to contact pubsub.googleapis.com 44 "tests/unit/pubsub_v1" 45 ]; 46 47 pythonImportsCheck = [ "google.cloud.pubsub" ]; 48 49 meta = with lib; { 50 description = "Google Cloud Pub/Sub API client library"; 51 homepage = "https://pypi.org/project/google-cloud-pubsub"; 52 license = licenses.asl20; 53 maintainers = with maintainers; [ SuperSandro2000 ]; 54 }; 55}