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