2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asyncclick,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
firebase-messaging,
|
|
|
|
oauthlib,
|
|
|
|
poetry-core,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytest-socket,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
requests,
|
|
|
|
requests-mock,
|
|
|
|
requests-oauthlib,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ring-doorbell";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.8.12";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "ring_doorbell";
|
|
|
|
inherit version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-CcnGfiJuv3hzez/G/Nu4OyruPL+bbSAtMAfGruqyPUU=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-11-16 04:20:00 +00:00
|
|
|
asyncclick
|
2021-03-09 03:18:52 +00:00
|
|
|
oauthlib
|
|
|
|
pytz
|
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-04-21 15:54:59 +00:00
|
|
|
listen = [ firebase-messaging ];
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytest-socket
|
2021-03-09 03:18:52 +00:00
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
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";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/tchellomello/python-ring-doorbell/releases/tag/${version}";
|
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
|
|
|
};
|
|
|
|
}
|