depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-vision/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

41 lines
960 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-vision";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "2bae8b4aca9aa38ad7459102cc5743c506adf9060ad2b3b15cff1e8021085017";
};
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 ];
};
}