1{ lib 2, aiohttp 3, buildPythonPackage 4, coreutils 5, fetchFromGitHub 6, google-auth 7, google-auth-oauthlib 8, google-cloud-pubsub 9, pydantic 10, pytest-aiohttp 11, pytest-asyncio 12, pytestCheckHook 13, pythonOlder 14, requests-oauthlib 15}: 16 17buildPythonPackage rec { 18 pname = "google-nest-sdm"; 19 version = "3.0.3"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.10"; 23 24 src = fetchFromGitHub { 25 owner = "allenporter"; 26 repo = "python-google-nest-sdm"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-VO/TY/QBzVFxqIumVJjw+Ic0hrqkRBS+7wQKBhcN9Jw="; 29 }; 30 31 propagatedBuildInputs = [ 32 aiohttp 33 google-auth 34 google-auth-oauthlib 35 google-cloud-pubsub 36 pydantic 37 requests-oauthlib 38 ]; 39 40 __darwinAllowLocalNetworking = true; 41 42 nativeCheckInputs = [ 43 coreutils 44 pytest-aiohttp 45 pytest-asyncio 46 pytestCheckHook 47 ]; 48 49 pythonImportsCheck = [ 50 "google_nest_sdm" 51 ]; 52 53 disabledTests = [ 54 "test_clip_preview_transcode" 55 "test_event_manager_event_expiration_with_transcode" 56 ]; 57 58 meta = with lib; { 59 description = "Module for Google Nest Device Access using the Smart Device Management API"; 60 homepage = "https://github.com/allenporter/python-google-nest-sdm"; 61 changelog = "https://github.com/allenporter/python-google-nest-sdm/releases/tag/${version}"; 62 license = licenses.asl20; 63 maintainers = with maintainers; [ fab ]; 64 }; 65}