python3Packages.google_cloud_logging: fix tests
This commit is contained in:
parent
3eda2da78d
commit
9324ba634d
|
@ -1,14 +1,6 @@
|
||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, django
|
||||||
, buildPythonPackage
|
, flask, google_api_core, google_cloud_core, google_cloud_testutils, mock
|
||||||
, fetchPypi
|
, webapp2 }:
|
||||||
, google_api_core
|
|
||||||
, google_cloud_core
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
, webapp2
|
|
||||||
, django
|
|
||||||
, flask
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-logging";
|
pname = "google-cloud-logging";
|
||||||
|
@ -19,17 +11,27 @@ buildPythonPackage rec {
|
||||||
sha256 = "cb0d4af9d684eb8a416f14c39d9fa6314be3adf41db2dd8ee8e30db9e8853d90";
|
sha256 = "cb0d4af9d684eb8a416f14c39d9fa6314be3adf41db2dd8ee8e30db9e8853d90";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock webapp2 django flask ];
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
checkInputs =
|
||||||
|
[ django flask google_cloud_testutils mock pytestCheckHook webapp2 ];
|
||||||
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
||||||
|
|
||||||
checkPhase = ''
|
# api_url test broken, fix not yet released
|
||||||
|
# https://github.com/googleapis/python-logging/pull/66
|
||||||
|
disabledTests =
|
||||||
|
[ "test_build_api_url_w_custom_endpoint" "test_write_log_entries" ];
|
||||||
|
|
||||||
|
# prevent google directory from shadowing google imports
|
||||||
|
# remove system integration tests
|
||||||
|
preCheck = ''
|
||||||
rm -r google
|
rm -r google
|
||||||
pytest tests/unit
|
rm tests/system/test_system.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Stackdriver Logging API client library";
|
description = "Stackdriver Logging API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/googleapis/python-logging";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue