1{ lib
2, buildPythonPackage
3, fetchPypi
4, oauthlib
5, pytestCheckHook
6, pythonOlder
7, pytz
8, requests
9, requests-mock
10, requests-oauthlib
11}:
12
13buildPythonPackage rec {
14 pname = "ring-doorbell";
15 version = "0.7.2";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 pname = "ring_doorbell";
22 inherit version;
23 hash = "sha256-Cn6Cq/JwhoQ+s5wCefXfzOpnUf+EhWDmcVTKb7+k7ys=";
24 };
25
26 propagatedBuildInputs = [
27 oauthlib
28 pytz
29 requests
30 requests-oauthlib
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 requests-mock
36 ];
37
38 pythonImportsCheck = [
39 "ring_doorbell"
40 ];
41
42 meta = with lib; {
43 description = "Python library to communicate with Ring Door Bell";
44 homepage = "https://github.com/tchellomello/python-ring-doorbell";
45 license = licenses.lgpl3Plus;
46 maintainers = with maintainers; [ graham33 ];
47 };
48}