2018-11-02 20:40:57 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, google_api_core
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-vision";
|
2019-12-19 19:31:12 +00:00
|
|
|
version = "0.41.0";
|
2018-11-02 20:40:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:12 +00:00
|
|
|
sha256 = "fd7adcfd8f1bddc19797b25ba3287a4f0cf42e208f330fffb7f1cd125e4d6cd3";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|