Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-nest-sdm / default.nix
blob31564a0536d9fdbb7e19a1b4a9e6b4b0046806ef
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
17 buildPythonPackage rec {
18   pname = "google-nest-sdm";
19   version = "3.0.3";
20   format = "setuptools";
22   disabled = pythonOlder "3.10";
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   };
31   propagatedBuildInputs = [
32     aiohttp
33     google-auth
34     google-auth-oauthlib
35     google-cloud-pubsub
36     pydantic
37     requests-oauthlib
38   ];
40   __darwinAllowLocalNetworking = true;
42   nativeCheckInputs = [
43     coreutils
44     pytest-aiohttp
45     pytest-asyncio
46     pytestCheckHook
47   ];
49   pythonImportsCheck = [
50     "google_nest_sdm"
51   ];
53   disabledTests = [
54     "test_clip_preview_transcode"
55     "test_event_manager_event_expiration_with_transcode"
56   ];
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   };