2018-11-02 21:40:57 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, google_api_core
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-vision";
|
2020-06-06 08:47:11 +02:00
|
|
|
version = "1.0.0";
|
2018-11-02 21:40:57 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:47:11 +02:00
|
|
|
sha256 = "18e78b190c81d200ae4f6a46d4af57422d68b3b05b0540d5cd1806e3874142bf";
|
2018-11-02 21:40:57 +01:00
|
|
|
};
|
|
|
|
|
2019-11-06 22:27:15 +01:00
|
|
|
checkInputs = [ mock ];
|
2018-11-02 21:40:57 +01:00
|
|
|
propagatedBuildInputs = [ enum34 google_api_core ];
|
|
|
|
|
2019-11-06 22:27:15 +01:00
|
|
|
# pytest seems to pick up some file which overrides PYTHONPATH
|
2018-11-02 21:40:57 +01:00
|
|
|
checkPhase = ''
|
2019-11-06 22:27:15 +01:00
|
|
|
cd tests/unit
|
|
|
|
python -m unittest discover
|
2018-11-02 21:40:57 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud Vision API API client library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 21:40:57 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|