Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-iot / default.nix
blob3cd2f397a6b8df0d6ddfb1ac66fd0980e3ce04f9
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , grpc-google-iam-v1
6 , libcst
7 , mock
8 , proto-plus
9 , protobuf
10 , pytest-asyncio
11 , pytestCheckHook
12 , pythonOlder
15 buildPythonPackage rec {
16   pname = "google-cloud-iot";
17   version = "2.9.2";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-pLQgcwR89F+9jcSDtW/5+6Gy+Wk7XQf4iD49vDPkN9U=";
25   };
27   propagatedBuildInputs = [
28     google-api-core
29     grpc-google-iam-v1
30     libcst
31     proto-plus
32     protobuf
33   ] ++ google-api-core.optional-dependencies.grpc;
35   nativeCheckInputs = [
36     mock
37     pytest-asyncio
38     pytestCheckHook
39   ];
41   disabledTests = [
42     # requires credentials
43     "test_list_device_registries"
44   ];
46   pythonImportsCheck = [
47     "google.cloud.iot"
48     "google.cloud.iot_v1"
49   ];
51   meta = with lib; {
52     description = "Cloud IoT API API client library";
53     homepage = "https://github.com/googleapis/python-iot";
54     changelog = "https://github.com/googleapis/python-iot/blob/v${version}/CHANGELOG.md";
55     license = licenses.asl20;
56     maintainers = with maintainers; [ ];
57   };