2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2022-01-22 01:22:15 +00:00
|
|
|
, asynctest
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
2022-01-22 01:22:15 +00:00
|
|
|
, coreutils
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, google-auth
|
|
|
|
, google-auth-oauthlib
|
|
|
|
, google-cloud-pubsub
|
|
|
|
, pytest-aiohttp
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytest-asyncio
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
2022-01-22 01:22:15 +00:00
|
|
|
, pythonOlder
|
2022-04-27 09:35:20 +00:00
|
|
|
, requests-oauthlib
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-nest-sdm";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "2.1.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allenporter";
|
|
|
|
repo = "python-google-nest-sdm";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-TuAqd9r/iExBa9uxU3386C12ZD+LEJai7DkJtcoupEs=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
google-auth
|
|
|
|
google-auth-oauthlib
|
|
|
|
google-cloud-pubsub
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-01-22 01:22:15 +00:00
|
|
|
asynctest
|
|
|
|
coreutils
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-aiohttp
|
2022-02-10 20:34:41 +00:00
|
|
|
pytest-asyncio
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google_nest_sdm"
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_clip_preview_transcode"
|
|
|
|
"test_event_manager_event_expiration_with_transcode"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Module for Google Nest Device Access using the Smart Device Management API";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/allenporter/python-google-nest-sdm";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/allenporter/python-google-nest-sdm/releases/tag/${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|