about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ring-doorbell/default.nix
blob: 041a959ca5b2ace3c2989f34f272b0d500ad4750 (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.1";
  disabled = !isPy3k;

  src = fetchPypi {
    pname = "ring_doorbell";
    inherit version;
    sha256 = "sha256-xE3TqXdhiUf9Tzmzc48D65Y5t1ekauacsTwwSG1urz4=";
  };

  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 ];
  };
}