2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
coreutils,
|
|
|
|
fetchFromGitHub,
|
|
|
|
google-auth,
|
|
|
|
google-auth-oauthlib,
|
|
|
|
google-cloud-pubsub,
|
2024-06-20 14:57:18 +00:00
|
|
|
mashumaro,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest-aiohttp,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests-oauthlib,
|
|
|
|
setuptools,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-nest-sdm";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "4.0.5";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allenporter";
|
|
|
|
repo = "python-google-nest-sdm";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-SA2PlHiqvvbXmCg0WqehLDiIGEMDbzwbzbCX1klMHis=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2021-12-06 16:07:01 +00:00
|
|
|
aiohttp
|
|
|
|
google-auth
|
|
|
|
google-auth-oauthlib
|
|
|
|
google-cloud-pubsub
|
2024-06-20 14:57:18 +00:00
|
|
|
mashumaro
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-22 01:22:15 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "google_nest_sdm" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
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 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "google_nest";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|