2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2018-11-02 12:42:52 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, grpc_google_iam_v1
|
2021-01-06 01:46:48 -08:00
|
|
|
, google-api-core
|
2021-01-05 14:57:37 -08:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2019-02-03 02:56:30 -08:00
|
|
|
, mock
|
2018-11-02 12:42:52 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-iot";
|
2021-02-10 22:25:14 -08:00
|
|
|
version = "2.0.2";
|
2018-11-02 12:42:52 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-10 22:25:14 -08:00
|
|
|
sha256 = "768ccd567b87bf0030f9458d796cc0a846c40825fa2896b77e9cc7a4af30ba2b";
|
2018-11-02 12:42:52 -07:00
|
|
|
};
|
|
|
|
|
2021-01-06 01:46:48 -08:00
|
|
|
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
|
2018-11-02 12:42:52 -07:00
|
|
|
|
2021-01-05 14:57:37 -08:00
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_list_device_registries"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.iot"
|
|
|
|
"google.cloud.iot_v1"
|
|
|
|
];
|
2018-11-02 12:42:52 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-11-02 12:42:52 -07:00
|
|
|
description = "Cloud IoT API API client library";
|
2021-01-05 14:57:37 -08:00
|
|
|
homepage = "https://github.com/googleapis/python-iot";
|
2018-11-02 12:42:52 -07:00
|
|
|
license = licenses.asl20;
|
2021-01-05 14:57:37 -08:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 12:42:52 -07:00
|
|
|
};
|
|
|
|
}
|