2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google-api-core
|
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2022-03-05 16:20:37 +00:00
|
|
|
, pythonOlder
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-vision";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "3.1.2";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-ZPuKE2GNUWD26nR+dlKAVDpQViCTCFyx+8W/448MgX4=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
libcst
|
|
|
|
google-api-core
|
|
|
|
proto-plus
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.vision"
|
|
|
|
"google.cloud.vision_helpers"
|
|
|
|
"google.cloud.vision_v1"
|
|
|
|
"google.cloud.vision_v1p1beta1"
|
|
|
|
"google.cloud.vision_v1p2beta1"
|
|
|
|
"google.cloud.vision_v1p3beta1"
|
|
|
|
"google.cloud.vision_v1p4beta1"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Cloud Vision API API client library";
|
|
|
|
homepage = "https://github.com/googleapis/python-vision";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|