2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-11-02 20:38:28 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-testutils
|
2021-01-05 12:59:37 +00:00
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 20:38:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-videointelligence";
|
2020-11-29 14:04:30 +00:00
|
|
|
version = "2.0.0";
|
2018-11-02 20:38:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 12:59:37 +00:00
|
|
|
sha256 = "1yhmizig41ymr2dz0i6ccrwszp0ivyykmq11vqxp82l9ncjima82";
|
2018-11-02 20:38:28 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core proto-plus ];
|
2021-01-05 12:59:37 +00:00
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
2021-01-05 12:59:37 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# require credentials
|
|
|
|
"test_annotate_video"
|
|
|
|
];
|
2018-11-02 20:38:28 +00:00
|
|
|
|
2021-01-05 12:59:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.videointelligence"
|
|
|
|
"google.cloud.videointelligence_v1"
|
|
|
|
"google.cloud.videointelligence_v1beta2"
|
|
|
|
"google.cloud.videointelligence_v1p1beta1"
|
|
|
|
"google.cloud.videointelligence_v1p2beta1"
|
|
|
|
"google.cloud.videointelligence_v1p3beta1"
|
|
|
|
];
|
2018-11-02 20:38:28 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 20:38:28 +00:00
|
|
|
description = "Google Cloud Video Intelligence API client library";
|
2021-01-05 12:59:37 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-videointelligence";
|
2018-11-02 20:38:28 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 12:59:37 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:38:28 +00:00
|
|
|
};
|
|
|
|
}
|