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