nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 63 lines 1.3 kB view raw
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 = "2.2.5"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "allenporter"; 26 repo = "python-google-nest-sdm"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-UMP4FMyS8nAZmN7oKBZhMbqTgi4bSR/JmIeyWaZRZis="; 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 nativeCheckInputs = [ 41 coreutils 42 pytest-aiohttp 43 pytest-asyncio 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ 48 "google_nest_sdm" 49 ]; 50 51 disabledTests = [ 52 "test_clip_preview_transcode" 53 "test_event_manager_event_expiration_with_transcode" 54 ]; 55 56 meta = with lib; { 57 description = "Module for Google Nest Device Access using the Smart Device Management API"; 58 homepage = "https://github.com/allenporter/python-google-nest-sdm"; 59 changelog = "https://github.com/allenporter/python-google-nest-sdm/releases/tag/${version}"; 60 license = licenses.asl20; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}