summary refs log tree commit diff
path: root/pkgs/development/python-modules/ring-doorbell/default.nix
blob: 968182f8535fdbde6e2d7dde932ff52fff4ec8ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, oauthlib
, pytestCheckHook
, pytz
, requests
, requests-mock
, requests_oauthlib
}:

buildPythonPackage rec {
  pname = "ring-doorbell";
  version = "0.7.2";
  disabled = !isPy3k;

  src = fetchPypi {
    pname = "ring_doorbell";
    inherit version;
    sha256 = "0a7e82abf27086843eb39c0279f5dfccea6751ff848560e67154ca6fbfa4ef2b";
  };

  propagatedBuildInputs = [
    oauthlib
    pytz
    requests
    requests_oauthlib
  ];

  checkInputs = [
    pytestCheckHook
    requests-mock
  ];

  pythonImportsCheck = [ "ring_doorbell" ];

  meta = with lib; {
    homepage = "https://github.com/tchellomello/python-ring-doorbell";
    description = "A Python library to communicate with Ring Door Bell (https://ring.com/)";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ graham33 ];
  };
}