about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/google_cloud_error_reporting/default.nix
blob: d6f89aefc5fa9f475377ff85727c6cf0ce65aaf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv
, buildPythonPackage
, fetchPypi
, google_cloud_logging
, pytest
, mock
}:

buildPythonPackage rec {
  pname = "google-cloud-error-reporting";
  version = "0.30.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "29d04cb6cc2053468addb78351b841df00cb56066e89b6aec0970cb003dd2fab";
  };

  checkInputs = [ pytest mock ];
  propagatedBuildInputs = [ google_cloud_logging ];

  checkPhase = ''
    pytest tests/unit
  '';

  meta = with stdenv.lib; {
    description = "Stackdriver Error Reporting API client library";
    homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}