pythonPackages.google_cloud_iot: Fix depedencies, cleanups

+19 -10
+19 -10
pkgs/development/python-modules/google_cloud_iot/default.nix
··· 1 1 { stdenv 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , enum34 5 4 , grpc_google_iam_v1 6 5 , google_api_core 7 - , pytest 6 + , libcst 7 + , proto-plus 8 + , pytestCheckHook 9 + , pytest-asyncio 8 10 , mock 9 11 }: 10 12 ··· 14 16 15 17 src = fetchPypi { 16 18 inherit pname version; 17 - sha256 = "8af2be9c74697a350d5cc8ead00ae6cb4e85943564f1d782e8060d0d5eb15723"; 19 + sha256 = "08spn5g0s386x21dgwb46na8aknbwq5d1sn8bh6kayk9fjfbxwla"; 18 20 }; 19 21 20 - checkInputs = [ pytest mock ]; 21 - propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ]; 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 + ]; 22 30 23 - checkPhase = '' 24 - pytest tests/unit 25 - ''; 31 + pythonImportsCheck = [ 32 + "google.cloud.iot" 33 + "google.cloud.iot_v1" 34 + ]; 26 35 27 36 meta = with stdenv.lib; { 28 37 description = "Cloud IoT API API client library"; 29 - homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 38 + homepage = "https://github.com/googleapis/python-iot"; 30 39 license = licenses.asl20; 31 - # maintainers = [ maintainers. ]; 40 + maintainers = with maintainers; [ SuperSandro2000 ]; 32 41 }; 33 42 }