1{ lib
2, aiohttp
3, aresponses
4, asynctest
5, backoff
6, buildPythonPackage
7, fetchFromGitHub
8, poetry-core
9, pytest-aiohttp
10, pytest-asyncio
11, pytestCheckHook
12, pythonOlder
13, pytz
14, types-pytz
15, voluptuous
16, websockets
17}:
18
19buildPythonPackage rec {
20 pname = "simplisafe-python";
21 version = "2021.10.0";
22 format = "pyproject";
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "bachya";
27 repo = pname;
28 rev = version;
29 sha256 = "sha256-J0uMlczR7y5wDchaOjp5d3Vf36WfRmt7d51koGiNHBk=";
30 };
31
32 nativeBuildInputs = [ poetry-core ];
33
34 propagatedBuildInputs = [
35 aiohttp
36 backoff
37 pytz
38 types-pytz
39 voluptuous
40 websockets
41 ];
42
43 checkInputs = [
44 aresponses
45 asynctest
46 pytest-aiohttp
47 pytest-asyncio
48 pytestCheckHook
49 ];
50
51 disabledTests = [
52 # simplipy/api.py:253: InvalidCredentialsError
53 "test_request_error_failed_retry"
54 "test_update_error"
55 ];
56
57 disabledTestPaths = [ "examples/" ];
58
59 pythonImportsCheck = [ "simplipy" ];
60
61 __darwinAllowLocalNetworking = true;
62
63 meta = with lib; {
64 description = "Python library the SimpliSafe API";
65 homepage = "https://simplisafe-python.readthedocs.io/";
66 license = with licenses; [ mit ];
67 maintainers = with maintainers; [ fab ];
68 };
69}