nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 42 lines 895 B view raw
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.0.2"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "768ccd567b87bf0030f9458d796cc0a846c40825fa2896b77e9cc7a4af30ba2b"; 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}