Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-error-reporting / default.nix
blob4f28791963564a08175c2b243ae8713a6815a9e8
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , google-cloud-logging
6 , google-cloud-testutils
7 , mock
8 , proto-plus
9 , protobuf
10 , pytest-asyncio
11 , pytestCheckHook
12 , pythonOlder
15 buildPythonPackage rec {
16   pname = "google-cloud-error-reporting";
17   version = "1.9.2";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-S+7x6gIxJDfV7Xe6DOBVbJNMREYlRFLyGo8BEpIdIow=";
25   };
27   propagatedBuildInputs = [
28     google-api-core
29     google-cloud-logging
30     proto-plus
31     protobuf
32   ] ++ google-api-core.optional-dependencies.grpc;
34   nativeCheckInputs = [
35     google-cloud-testutils
36     mock
37     pytestCheckHook
38     pytest-asyncio
39   ];
41   disabledTests = [
42     # Tests require credentials
43     "test_report_error_event"
44     "test_report_exception"
45   ];
47   preCheck = ''
48     # prevent google directory from shadowing google imports
49     rm -r google
50   '';
52   meta = with lib; {
53     description = "Stackdriver Error Reporting API client library";
54     homepage = "https://github.com/googleapis/python-error-reporting";
55     changelog = "https://github.com/googleapis/python-error-reporting/blob/v${version}/CHANGELOG.md";
56     license = licenses.asl20;
57     maintainers = with maintainers; [ ];
58   };