pythonPackages.google_cloud_iot: Fix depedencies, cleanups

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