2018-11-02 20:30:52 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_api_core
|
|
|
|
, google_cloud_core
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, webapp2
|
|
|
|
, django
|
|
|
|
, flask
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-logging";
|
2020-03-18 22:34:50 +01:00
|
|
|
version = "1.15.0";
|
2018-11-02 20:30:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-18 22:34:50 +01:00
|
|
|
sha256 = "0smpvzdbz3ih3vc0nmn9619xa40mmqk9rs9ic1mwwyh1iyi44waz";
|
2018-11-02 20:30:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock webapp2 django flask ];
|
|
|
|
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-03-18 22:34:50 +01:00
|
|
|
rm -r google
|
2018-11-02 20:30:52 +01:00
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Stackdriver Logging API client library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 20:30:52 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|