1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-auth 5, googleapis-common-protos 6, grpcio 7, protobuf 8, proto-plus 9, requests 10, mock 11, pytest-asyncio 12, pytestCheckHook 13}: 14 15buildPythonPackage rec { 16 pname = "google-api-core"; 17 version = "2.1.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "sha256-XsJ7lCs00EVZy/NnRDC7g/w9dOfTK4u9McRGbnF0C4M="; 22 }; 23 24 propagatedBuildInputs = [ 25 googleapis-common-protos 26 google-auth 27 grpcio 28 protobuf 29 proto-plus 30 requests 31 ]; 32 33 checkInputs = [ mock pytest-asyncio pytestCheckHook ]; 34 35 # prevent google directory from shadowing google imports 36 preCheck = '' 37 rm -r google 38 ''; 39 40 pythonImportsCheck = [ "google.api_core" ]; 41 42 meta = with lib; { 43 description = "Core Library for Google Client Libraries"; 44 longDescription = '' 45 This library is not meant to stand-alone. Instead it defines common 46 helpers used by all Google API clients. 47 ''; 48 homepage = "https://github.com/googleapis/python-api-core"; 49 changelog = "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md"; 50 license = licenses.asl20; 51 maintainers = with maintainers; [ SuperSandro2000 ]; 52 }; 53}