Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / ring-doorbell / default.nix
blobf70e4921b9e75f6a0ac380ccdd6efd47a3bd79bc
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy3k
5 , oauthlib
6 , pytestCheckHook
7 , pytz
8 , requests
9 , requests-mock
10 , requests_oauthlib
13 buildPythonPackage rec {
14   pname = "ring-doorbell";
15   version = "0.7.0";
16   disabled = !isPy3k;
18   src = fetchPypi {
19     pname = "ring_doorbell";
20     inherit version;
21     sha256 = "1qnx9q9rzxhh0pygl3f9bg21b5zv7csv9h1w4zngdvsphbs0yiwg";
22   };
24   propagatedBuildInputs = [
25     oauthlib
26     pytz
27     requests
28     requests_oauthlib
29   ];
31   checkInputs = [
32     pytestCheckHook
33     requests-mock
34   ];
36   pythonImportsCheck = [ "ring_doorbell" ];
38   meta = with lib; {
39     homepage = "https://github.com/tchellomello/python-ring-doorbell";
40     description = "A Python library to communicate with Ring Door Bell (https://ring.com/)";
41     license = licenses.lgpl3Plus;
42     maintainers = with maintainers; [ graham33 ];
43   };