2018-11-02 20:40:57 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, google_api_core
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-vision";
|
2020-11-29 14:04:30 +00:00
|
|
|
version = "2.0.0";
|
2018-11-02 20:40:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:30 +00:00
|
|
|
sha256 = "6a067d9a661df2e9b356b2772051decfea1971f8d659c246412a165baf827c61";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 20:40:57 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|