1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, google-cloud-core 6, grpc-google-iam-v1 7, libcst 8, mock 9, proto-plus 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-bigtable"; 16 version = "2.13.2"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-a0R8CefN6gtIYqtNdCW9QKJulsbDnH6dFuUfTp8jUnA="; 24 }; 25 26 propagatedBuildInputs = [ 27 google-api-core 28 google-cloud-core 29 grpc-google-iam-v1 30 libcst 31 proto-plus 32 ]; 33 34 checkInputs = [ 35 mock 36 pytestCheckHook 37 ]; 38 39 checkPhase = '' 40 # Prevent google directory from shadowing google imports 41 rm -r google 42 ''; 43 44 disabledTests = [ 45 "policy" 46 ]; 47 48 pythonImportsCheck = [ 49 "google.cloud.bigtable_admin_v2" 50 "google.cloud.bigtable_v2" 51 "google.cloud.bigtable" 52 ]; 53 54 meta = with lib; { 55 description = "Google Cloud Bigtable API client library"; 56 homepage = "https://github.com/googleapis/python-bigtable"; 57 license = licenses.asl20; 58 maintainers = with maintainers; [ costrouc ]; 59 }; 60}