From 7a6095501d01ed8a2fe8ff89922d67be6fa6ccbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 5 Jan 2021 23:57:37 +0100 Subject: [PATCH] pythonPackages.google_cloud_iot: Fix depedencies, cleanups --- .../google_cloud_iot/default.nix | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/google_cloud_iot/default.nix b/pkgs/development/python-modules/google_cloud_iot/default.nix index 96364cfd702..d5b9cbf127e 100644 --- a/pkgs/development/python-modules/google_cloud_iot/default.nix +++ b/pkgs/development/python-modules/google_cloud_iot/default.nix @@ -1,10 +1,12 @@ { stdenv , buildPythonPackage , fetchPypi -, enum34 , grpc_google_iam_v1 , google_api_core -, pytest +, libcst +, proto-plus +, pytestCheckHook +, pytest-asyncio , mock }: @@ -14,20 +16,27 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "8af2be9c74697a350d5cc8ead00ae6cb4e85943564f1d782e8060d0d5eb15723"; + sha256 = "08spn5g0s386x21dgwb46na8aknbwq5d1sn8bh6kayk9fjfbxwla"; }; - checkInputs = [ pytest mock ]; - propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ]; + propagatedBuildInputs = [ grpc_google_iam_v1 google_api_core libcst proto-plus ]; - checkPhase = '' - pytest tests/unit - ''; + checkInputs = [ mock pytestCheckHook pytest-asyncio ]; + + disabledTests = [ + # requires credentials + "test_list_device_registries" + ]; + + pythonImportsCheck = [ + "google.cloud.iot" + "google.cloud.iot_v1" + ]; meta = with stdenv.lib; { description = "Cloud IoT API API client library"; - homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; + homepage = "https://github.com/googleapis/python-iot"; license = licenses.asl20; - # maintainers = [ maintainers. ]; + maintainers = with maintainers; [ SuperSandro2000 ]; }; }