2018-11-02 20:40:57 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, google_api_core
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-vision";
|
2019-10-24 06:47:34 +00:00
|
|
|
version = "0.39.0";
|
2018-11-02 20:40:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:34 +00:00
|
|
|
sha256 = "f33aea6721d453901ded268dee61a01ab77d4cd215a76edc3cc61b6028299d3e";
|
2018-11-02 20:40:57 +00:00
|
|
|
};
|
|
|
|
|
2019-11-06 21:27:15 +00:00
|
|
|
checkInputs = [ mock ];
|
2018-11-02 20:40:57 +00:00
|
|
|
propagatedBuildInputs = [ enum34 google_api_core ];
|
|
|
|
|
2019-11-06 21:27:15 +00:00
|
|
|
# pytest seems to pick up some file which overrides PYTHONPATH
|
2018-11-02 20:40:57 +00:00
|
|
|
checkPhase = ''
|
2019-11-06 21:27:15 +00:00
|
|
|
cd tests/unit
|
|
|
|
python -m unittest discover
|
2018-11-02 20:40:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|