1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, google-api-core 6, mock 7}: 8 9buildPythonPackage rec { 10 pname = "google-cloud-core"; 11 version = "2.3.2"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "sha256-uVKe5wR/2NS/SiGC3mGRVCQN8X++YOrTmQeMGuFSr5o="; 16 }; 17 18 propagatedBuildInputs = [ google-api-core ]; 19 20 checkInputs = [ mock pytestCheckHook ]; 21 22 # prevent google directory from shadowing google imports 23 preCheck = '' 24 rm -r google 25 ''; 26 27 pythonImportsCheck = [ "google.cloud" ]; 28 29 meta = with lib; { 30 description = "API Client library for Google Cloud: Core Helpers"; 31 homepage = "https://github.com/googleapis/python-cloud-core"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ SuperSandro2000 ]; 34 }; 35}