depot/third_party/nixpkgs/pkgs/development/python-modules/ring-doorbell/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

72 lines
1.3 KiB
Nix

{
lib,
aiofiles,
aiohttp,
aioresponses,
asyncclick,
buildPythonPackage,
fetchPypi,
firebase-messaging,
freezegun,
hatchling,
oauthlib,
pytest-asyncio,
pytest-freezer,
pytest-mock,
pytest-socket,
pytestCheckHook,
pythonOlder,
pytz,
typing-extensions,
websockets,
}:
buildPythonPackage rec {
pname = "ring-doorbell";
version = "0.9.8";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "ring_doorbell";
inherit version;
hash = "sha256-3OSD+L6+mZkkm0OU09hAFyEAxJZ3YA1+lRm2DjQ7Dl0=";
};
pythonRelaxDeps = [ "requests-oauthlib" ];
build-system = [ hatchling ];
dependencies = [
aiofiles
aiohttp
asyncclick
firebase-messaging
oauthlib
pytz
typing-extensions
websockets
];
nativeCheckInputs = [
aioresponses
freezegun
pytest-asyncio
pytest-freezer
pytest-mock
pytest-socket
pytestCheckHook
];
pythonImportsCheck = [ "ring_doorbell" ];
meta = with lib; {
description = "Library to communicate with Ring Door Bell";
homepage = "https://github.com/tchellomello/python-ring-doorbell";
changelog = "https://github.com/tchellomello/python-ring-doorbell/blob/${version}/CHANGELOG.md";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ graham33 ];
mainProgram = "ring-doorbell";
};
}