2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
2023-11-16 04:20:00 +00:00
|
|
|
, asyncclick
|
2021-03-09 03:18:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-01-02 11:29:13 +00:00
|
|
|
, firebase-messaging
|
2021-03-09 03:18:52 +00:00
|
|
|
, oauthlib
|
2023-10-09 19:29:22 +00:00
|
|
|
, poetry-core
|
2023-11-16 04:20:00 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-socket
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
, requests-mock
|
2022-04-27 09:35:20 +00:00
|
|
|
, requests-oauthlib
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ring-doorbell";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.8.5";
|
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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-WYoElfkq0/uK3GPcIwDUP9w8l5zN9G2X/KDJbJNse9s=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [
|
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 = {
|
|
|
|
listen = [
|
|
|
|
firebase-messaging
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ring_doorbell"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Python 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 ];
|
|
|
|
};
|
|
|
|
}
|