nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 1.4 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 coreutils, 6 fetchFromGitHub, 7 google-auth, 8 google-auth-oauthlib, 9 google-cloud-pubsub, 10 mashumaro, 11 pytest-aiohttp, 12 pytest-asyncio, 13 pytestCheckHook, 14 pyyaml, 15 requests-oauthlib, 16 setuptools, 17}: 18 19buildPythonPackage rec { 20 pname = "google-nest-sdm"; 21 version = "9.1.2"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "allenporter"; 26 repo = "python-google-nest-sdm"; 27 tag = version; 28 hash = "sha256-yElmh+ajNVbjhsnNsUtQ3mJw9fvJtXqgS58iow+Nwi8="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 aiohttp 35 google-auth 36 google-auth-oauthlib 37 google-cloud-pubsub 38 mashumaro 39 pyyaml 40 requests-oauthlib 41 ]; 42 43 __darwinAllowLocalNetworking = true; 44 45 nativeCheckInputs = [ 46 coreutils 47 pytest-aiohttp 48 pytest-asyncio 49 pytestCheckHook 50 ]; 51 52 pythonImportsCheck = [ "google_nest_sdm" ]; 53 54 disabledTests = [ 55 "test_clip_preview_transcode" 56 "test_event_manager_event_expiration_with_transcode" 57 ]; 58 59 meta = { 60 description = "Module for Google Nest Device Access using the Smart Device Management API"; 61 homepage = "https://github.com/allenporter/python-google-nest-sdm"; 62 changelog = "https://github.com/allenporter/python-google-nest-sdm/releases/tag/${src.tag}"; 63 license = lib.licenses.asl20; 64 maintainers = with lib.maintainers; [ fab ]; 65 mainProgram = "google_nest"; 66 }; 67}