Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ring-doorbell / default.nix
blob674c508696bf5d3f7e699f5e5ba87265c826c08f
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
18 buildPythonPackage rec {
19   pname = "ring-doorbell";
20   version = "0.8.1";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchPypi {
26     pname = "ring_doorbell";
27     inherit version;
28     hash = "sha256-A7FQeeYym0nAQlkbpejpZqd5ZgX2cw3/DbshDxlrivw=";
29   };
31   nativeBuildInputs = [
32     poetry-core
33   ];
35   propagatedBuildInputs = [
36     asyncclick
37     oauthlib
38     pytz
39     requests
40     requests-oauthlib
41   ];
43   nativeCheckInputs = [
44     pytest-asyncio
45     pytest-mock
46     pytest-socket
47     pytestCheckHook
48     requests-mock
49   ];
51   pythonImportsCheck = [
52     "ring_doorbell"
53   ];
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   };