1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-api-core, 6 google-cloud-core, 7 mock, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "google-cloud-runtimeconfig"; 14 version = "0.34.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-hyxvTChxCGC6YjjvYGqaJDvgBbve7EjzfPELl+LB2D8="; 22 }; 23 24 propagatedBuildInputs = [ 25 google-api-core 26 google-cloud-core 27 ]; 28 29 nativeCheckInputs = [ 30 mock 31 pytestCheckHook 32 ]; 33 34 # Client tests require credentials 35 disabledTests = [ "client_options" ]; 36 37 # prevent google directory from shadowing google imports 38 preCheck = '' 39 rm -r google 40 ''; 41 42 pythonImportsCheck = [ "google.cloud.runtimeconfig" ]; 43 44 meta = with lib; { 45 description = "Google Cloud RuntimeConfig API client library"; 46 homepage = "https://github.com/googleapis/python-runtimeconfig"; 47 changelog = "https://github.com/googleapis/python-runtimeconfig/blob/v${version}/CHANGELOG.md"; 48 license = licenses.asl20; 49 maintainers = [ ]; 50 }; 51}