mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
33 lines
690 B
Nix
33 lines
690 B
Nix
|
{ stdenv
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, google_api_core
|
||
|
, pandas
|
||
|
, pytest
|
||
|
, mock
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "google-cloud-monitoring";
|
||
|
version = "0.30.1";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "6b26d659360306d51b9fb88c5b1eb77bf49967a37b6348ae9568c083e466274d";
|
||
|
};
|
||
|
|
||
|
checkInputs = [ pytest mock ];
|
||
|
propagatedBuildInputs = [ google_api_core pandas ];
|
||
|
|
||
|
checkPhase = ''
|
||
|
pytest tests/unit
|
||
|
'';
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
description = "Stackdriver Monitoring API client library";
|
||
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
||
|
license = licenses.asl20;
|
||
|
maintainers = [ maintainers.costrouc ];
|
||
|
};
|
||
|
}
|