My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/google-cloud-vision/default.nix

53 lines
1.0 KiB

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-vision";
version = "2.7.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-4NTWyf3rndw1zHINlBMtoEmdfSXGnU/jEhxab807Vg4=";
};
propagatedBuildInputs = [
libcst
google-api-core
proto-plus
];
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"
];
meta = with lib; {
description = "Cloud Vision API API client library";
homepage = "https://github.com/googleapis/python-vision";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}