2018-11-02 12:42:52 -07:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, grpc_google_iam_v1
|
|
|
|
, google_api_core
|
|
|
|
, pytest
|
2019-02-03 02:56:30 -08:00
|
|
|
, mock
|
2018-11-02 12:42:52 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-iot";
|
2020-11-29 06:04:29 -08:00
|
|
|
version = "2.0.1";
|
2018-11-02 12:42:52 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 06:04:29 -08:00
|
|
|
sha256 = "8af2be9c74697a350d5cc8ead00ae6cb4e85943564f1d782e8060d0d5eb15723";
|
2018-11-02 12:42:52 -07:00
|
|
|
};
|
|
|
|
|
2019-02-03 02:56:30 -08:00
|
|
|
checkInputs = [ pytest mock ];
|
2018-11-02 12:42:52 -07:00
|
|
|
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud IoT API API client library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 12:42:52 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
# maintainers = [ maintainers. ];
|
|
|
|
};
|
|
|
|
}
|