1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, google-cloud-testutils 6, mock 7, proto-plus 8, protobuf 9, pytest-asyncio 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-videointelligence"; 16 version = "2.11.4"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-B6zimaY/Wz1EQTdWNIU7Vc6PkMYsaiT4pH6wVBSfb5k="; 24 }; 25 26 propagatedBuildInputs = [ 27 google-api-core 28 proto-plus 29 protobuf 30 ] ++ google-api-core.optional-dependencies.grpc; 31 32 nativeCheckInputs = [ 33 google-cloud-testutils 34 mock 35 pytestCheckHook 36 pytest-asyncio 37 ]; 38 39 disabledTests = [ 40 # require credentials 41 "test_annotate_video" 42 ]; 43 44 pythonImportsCheck = [ 45 "google.cloud.videointelligence" 46 "google.cloud.videointelligence_v1" 47 "google.cloud.videointelligence_v1beta2" 48 "google.cloud.videointelligence_v1p1beta1" 49 "google.cloud.videointelligence_v1p2beta1" 50 "google.cloud.videointelligence_v1p3beta1" 51 ]; 52 53 meta = with lib; { 54 description = "Google Cloud Video Intelligence API client library"; 55 homepage = "https://github.com/googleapis/python-videointelligence"; 56 changelog = "https://github.com/googleapis/python-videointelligence/blob/v${version}/CHANGELOG.md"; 57 license = licenses.asl20; 58 maintainers = with maintainers; [ ]; 59 }; 60}