Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, google_cloud_logging 5, pytest 6, mock 7}: 8 9buildPythonPackage rec { 10 pname = "google-cloud-error-reporting"; 11 version = "0.34.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "34edd11601b17c87a89c2e1cefdc27d975e1e9243a88ba3c0c48bfe6a05c404f"; 16 }; 17 18 checkInputs = [ pytest mock ]; 19 propagatedBuildInputs = [ google_cloud_logging ]; 20 21 checkPhase = '' 22 rm -r google 23 pytest tests/unit 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Stackdriver Error Reporting API client library"; 28 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 29 license = licenses.asl20; 30 maintainers = [ maintainers.costrouc ]; 31 }; 32}