2018-11-02 19:42:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, grpc_google_iam_v1
|
|
|
|
, google_api_core
|
2021-01-05 22:57:37 +00:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2018-11-02 19:42:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-iot";
|
2020-11-29 14:04:29 +00:00
|
|
|
version = "2.0.1";
|
2018-11-02 19:42:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 22:57:37 +00:00
|
|
|
sha256 = "08spn5g0s386x21dgwb46na8aknbwq5d1sn8bh6kayk9fjfbxwla";
|
2018-11-02 19:42:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 22:57:37 +00:00
|
|
|
propagatedBuildInputs = [ grpc_google_iam_v1 google_api_core libcst proto-plus ];
|
2018-11-02 19:42:52 +00:00
|
|
|
|
2021-01-05 22:57:37 +00:00
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_list_device_registries"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.iot"
|
|
|
|
"google.cloud.iot_v1"
|
|
|
|
];
|
2018-11-02 19:42:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud IoT API API client library";
|
2021-01-05 22:57:37 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-iot";
|
2018-11-02 19:42:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 22:57:37 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:42:52 +00:00
|
|
|
};
|
|
|
|
}
|