2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-09-19 14:19:46 +00:00
|
|
|
aiofiles,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
2024-04-21 15:54:59 +00:00
|
|
|
asyncclick,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
firebase-messaging,
|
2024-09-19 14:19:46 +00:00
|
|
|
freezegun,
|
2024-09-26 11:04:55 +00:00
|
|
|
hatchling,
|
2024-04-21 15:54:59 +00:00
|
|
|
oauthlib,
|
|
|
|
pytest-asyncio,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-freezer,
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest-mock,
|
|
|
|
pytest-socket,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
2024-09-19 14:19:46 +00:00
|
|
|
typing-extensions,
|
2024-09-26 11:04:55 +00:00
|
|
|
websockets,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ring-doorbell";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.9.6";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "ring_doorbell";
|
|
|
|
inherit version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-pSHsQ2bJ0zNk6eJfDERVFqZM/IWorL8HFFjnwnhaHhY=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonRelaxDeps = [ "requests-oauthlib" ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
build-system = [ hatchling ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-09-19 14:19:46 +00:00
|
|
|
aiofiles
|
|
|
|
aiohttp
|
2023-11-16 04:20:00 +00:00
|
|
|
asyncclick
|
2024-10-04 16:56:33 +00:00
|
|
|
firebase-messaging
|
2021-03-09 03:18:52 +00:00
|
|
|
oauthlib
|
|
|
|
pytz
|
2024-09-19 14:19:46 +00:00
|
|
|
typing-extensions
|
2024-09-26 11:04:55 +00:00
|
|
|
websockets
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-09-19 14:19:46 +00:00
|
|
|
aioresponses
|
|
|
|
freezegun
|
2023-11-16 04:20:00 +00:00
|
|
|
pytest-asyncio
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-freezer
|
2023-11-16 04:20:00 +00:00
|
|
|
pytest-mock
|
|
|
|
pytest-socket
|
2021-03-09 03:18:52 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "ring_doorbell" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Library to communicate with Ring Door Bell";
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "https://github.com/tchellomello/python-ring-doorbell";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/tchellomello/python-ring-doorbell/blob/${version}/CHANGELOG.md";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ graham33 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ring-doorbell";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
}
|