1{ lib
2, buildPythonPackage
3, fetchPypi
4, grpc-google-iam-v1
5, google-api-core
6, libcst
7, proto-plus
8, pytestCheckHook
9, pytest-asyncio
10, mock
11}:
12
13buildPythonPackage rec {
14 pname = "google-cloud-iot";
15 version = "2.3.0";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "cb31a864be75c47880748b6c81f0c57cbce190a87e402ce32b2b772be2dba5fa";
20 };
21
22 propagatedBuildInputs = [ grpc-google-iam-v1 google-api-core libcst proto-plus ];
23
24 checkInputs = [ mock pytestCheckHook pytest-asyncio ];
25
26 disabledTests = [
27 # requires credentials
28 "test_list_device_registries"
29 ];
30
31 pythonImportsCheck = [
32 "google.cloud.iot"
33 "google.cloud.iot_v1"
34 ];
35
36 meta = with lib; {
37 description = "Cloud IoT API API client library";
38 homepage = "https://github.com/googleapis/python-iot";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ SuperSandro2000 ];
41 };
42}