1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, libcst
6, mock
7, proto-plus
8, pytestCheckHook
9, pytest-asyncio
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "google-cloud-vision";
15 version = "3.1.4";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-1nqU9Sr+tWPK3l5r7UiFD0wA3+UmYcHFT4ta2bdRL+U=";
23 };
24
25 propagatedBuildInputs = [
26 libcst
27 google-api-core
28 proto-plus
29 ];
30
31 checkInputs = [
32 mock
33 pytestCheckHook
34 pytest-asyncio
35 ];
36
37 pythonImportsCheck = [
38 "google.cloud.vision"
39 "google.cloud.vision_helpers"
40 "google.cloud.vision_v1"
41 "google.cloud.vision_v1p1beta1"
42 "google.cloud.vision_v1p2beta1"
43 "google.cloud.vision_v1p3beta1"
44 "google.cloud.vision_v1p4beta1"
45 ];
46
47 meta = with lib; {
48 description = "Cloud Vision API API client library";
49 homepage = "https://github.com/googleapis/python-vision";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ SuperSandro2000 ];
52 };
53}