forked from mirrors/nixpkgs
33 lines
680 B
Nix
33 lines
680 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|