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