Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-videointelligence / default.nix
blob3ff18366e426e3dcf998b45e5aea27de9d6dd45e
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
14 buildPythonPackage rec {
15   pname = "google-cloud-videointelligence";
16   version = "2.11.4";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-B6zimaY/Wz1EQTdWNIU7Vc6PkMYsaiT4pH6wVBSfb5k=";
24   };
26   propagatedBuildInputs = [
27     google-api-core
28     proto-plus
29     protobuf
30   ] ++ google-api-core.optional-dependencies.grpc;
32   nativeCheckInputs = [
33     google-cloud-testutils
34     mock
35     pytestCheckHook
36     pytest-asyncio
37   ];
39   disabledTests = [
40     # require credentials
41     "test_annotate_video"
42   ];
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   ];
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   };