nixpkgs/pkgs/development/python-modules/google_cloud_trace/default.nix

33 lines
702 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, google_cloud_core
, pytest
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-trace";
version = "0.19.0";
src = fetchPypi {
inherit pname version;
sha256 = "2cb774498e90143a9565dd50e2814b6b0292242a53b8804a1a529989e18b7461";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core google_cloud_core ];
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Stackdriver Trace API client library";
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}