pythonPackages.google_cloud_vision: init at 0.34.0

This commit is contained in:
Chris Ostrouchov 2018-11-02 16:40:57 -04:00
parent e657733595
commit 4dc3d52167
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, google_api_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-vision";
version = "0.34.0";
src = fetchPypi {
inherit pname version;
sha256 = "50392b2c68e40dbf725c531ba4d325bd910da6441a472ed0a3fadfd0ab8548f7";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 google_api_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Cloud Vision API API client library";
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}

View file

@ -2506,6 +2506,8 @@ in {
google_cloud_videointelligence = callPackage ../development/python-modules/google_cloud_videointelligence { };
google_cloud_vision = callPackage ../development/python-modules/google_cloud_vision { };
google_resumable_media = callPackage ../development/python-modules/google_resumable_media { };
gpgme = toPythonModule (pkgs.gpgme.override { pythonSupport=true; });