2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-11-02 20:40:57 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
2021-01-05 12:51:57 +00:00
|
|
|
, libcst
|
2018-11-02 20:40:57 +00:00
|
|
|
, mock
|
2021-01-05 12:51:57 +00:00
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 20:40:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-vision";
|
2021-02-13 10:07:12 +00:00
|
|
|
version = "2.2.0";
|
2018-11-02 20:40:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-13 10:07:12 +00:00
|
|
|
sha256 = "9a205be275739c141873fa9fbd7c3f9ec6170972c85d5c75e9b4c53b5db839a3";
|
2018-11-02 20:40:57 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ libcst google-api-core proto-plus];
|
2018-11-02 20:40:57 +00:00
|
|
|
|
2021-01-05 12:51:57 +00:00
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
2018-11-02 20:40:57 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 20:40:57 +00:00
|
|
|
description = "Cloud Vision API API client library";
|
2021-01-05 12:51:57 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-vision";
|
2018-11-02 20:40:57 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 12:51:57 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:40:57 +00:00
|
|
|
};
|
|
|
|
}
|