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.13.3";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-FGByHYEgZhxHfAGvDt09sDhFhX9SFGpKOfFrSs+zb20=";
26 };
27
28 nativeBuildInputs = [ setuptools ];
29
30 propagatedBuildInputs = [
31 google-api-core
32 proto-plus
33 protobuf
34 ] ++ google-api-core.optional-dependencies.grpc;
35
36 nativeCheckInputs = [
37 google-cloud-testutils
38 mock
39 pytestCheckHook
40 pytest-asyncio
41 ];
42
43 disabledTests = [
44 # require credentials
45 "test_annotate_video"
46 ];
47
48 pythonImportsCheck = [
49 "google.cloud.videointelligence"
50 "google.cloud.videointelligence_v1"
51 "google.cloud.videointelligence_v1beta2"
52 "google.cloud.videointelligence_v1p1beta1"
53 "google.cloud.videointelligence_v1p2beta1"
54 "google.cloud.videointelligence_v1p3beta1"
55 ];
56
57 meta = with lib; {
58 description = "Google Cloud Video Intelligence API client library";
59 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-videointelligence";
60 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-videointelligence-v${version}/packages/google-cloud-videointelligence/CHANGELOG.md";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ ];
63 };
64}