1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, pytestCheckHook
6, requests
7, requests-mock
8, sseclient-py
9}:
10
11buildPythonPackage rec {
12 pname = "pyarlo";
13 version = "0.2.4";
14
15 src = fetchFromGitHub {
16 owner = "tchellomello";
17 repo = "python-arlo";
18 rev = version;
19 sha256 = "0pp7y2llk4xnf6zh57j5xas0gw5zqm42qaqssd8p4qa3g5rds8k3";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 sseclient-py
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 mock
30 requests-mock
31 ];
32
33 pythonImportsCheck = [ "pyarlo" ];
34
35 meta = with lib; {
36 description = "Python library to work with Netgear Arlo cameras";
37 homepage = "https://github.com/tchellomello/python-arlo";
38 license = with licenses; [ lgpl3Plus ];
39 maintainers = with maintainers; [ fab ];
40 };
41}