python3Packages.google_cloud_error_reporting: 0.34.0 -> 1.0.0
This commit is contained in:
parent
d1cd5b6f54
commit
3305029ef1
|
@ -1,31 +1,31 @@
|
||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
||||||
, buildPythonPackage
|
, google_cloud_logging, google_cloud_testutils, libcst, mock, proto-plus
|
||||||
, fetchPypi
|
, pytest-asyncio }:
|
||||||
, google_cloud_logging
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-error-reporting";
|
pname = "google-cloud-error-reporting";
|
||||||
version = "0.34.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "34edd11601b17c87a89c2e1cefdc27d975e1e9243a88ba3c0c48bfe6a05c404f";
|
sha256 = "1y5vkkg1cmzshj5j68zk1876857z8a7sjm0wqhf4rzgqgkr2kcdd";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
disabled = pythonOlder "3.6";
|
||||||
propagatedBuildInputs = [ google_cloud_logging ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
|
||||||
|
propagatedBuildInputs = [ google_cloud_logging libcst proto-plus ];
|
||||||
|
|
||||||
|
# Disable tests that require credentials
|
||||||
|
disabledTests = [ "test_report_error_event" "test_report_exception" ];
|
||||||
|
# prevent google directory from shadowing google imports
|
||||||
|
preCheck = ''
|
||||||
rm -r google
|
rm -r google
|
||||||
pytest tests/unit
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Stackdriver Error Reporting API client library";
|
description = "Stackdriver Error Reporting API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/googleapis/python-error-reporting";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue