1{ lib
2, asyncclick
3, buildPythonPackage
4, fetchPypi
5, oauthlib
6, poetry-core
7, pytest-asyncio
8, pytest-mock
9, pytest-socket
10, pytestCheckHook
11, pythonOlder
12, pytz
13, requests
14, requests-mock
15, requests-oauthlib
16}:
17
18buildPythonPackage rec {
19 pname = "ring-doorbell";
20 version = "0.8.1";
21 pyproject = true;
22
23 disabled = pythonOlder "3.8";
24
25 src = fetchPypi {
26 pname = "ring_doorbell";
27 inherit version;
28 hash = "sha256-A7FQeeYym0nAQlkbpejpZqd5ZgX2cw3/DbshDxlrivw=";
29 };
30
31 nativeBuildInputs = [
32 poetry-core
33 ];
34
35 propagatedBuildInputs = [
36 asyncclick
37 oauthlib
38 pytz
39 requests
40 requests-oauthlib
41 ];
42
43 nativeCheckInputs = [
44 pytest-asyncio
45 pytest-mock
46 pytest-socket
47 pytestCheckHook
48 requests-mock
49 ];
50
51 pythonImportsCheck = [
52 "ring_doorbell"
53 ];
54
55 meta = with lib; {
56 description = "Python library to communicate with Ring Door Bell";
57 homepage = "https://github.com/tchellomello/python-ring-doorbell";
58 changelog = "https://github.com/tchellomello/python-ring-doorbell/releases/tag/${version}";
59 license = licenses.lgpl3Plus;
60 maintainers = with maintainers; [ graham33 ];
61 };
62}