1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, oauthlib 6, pytestCheckHook 7, pytz 8, requests 9, requests-mock 10, requests_oauthlib 11}: 12 13buildPythonPackage rec { 14 pname = "ring-doorbell"; 15 version = "0.7.1"; 16 disabled = !isPy3k; 17 18 src = fetchPypi { 19 pname = "ring_doorbell"; 20 inherit version; 21 sha256 = "sha256-xE3TqXdhiUf9Tzmzc48D65Y5t1ekauacsTwwSG1urz4="; 22 }; 23 24 propagatedBuildInputs = [ 25 oauthlib 26 pytz 27 requests 28 requests_oauthlib 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 requests-mock 34 ]; 35 36 pythonImportsCheck = [ "ring_doorbell" ]; 37 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 }; 44}