2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-10-17 09:34:42 +00:00
|
|
|
, aresponses
|
2021-07-24 12:14:16 +00:00
|
|
|
, backoff
|
2022-05-18 14:49:53 +00:00
|
|
|
, beautifulsoup4
|
2021-03-23 19:22:30 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, docutils
|
2021-03-23 19:22:30 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2021-08-08 23:34:03 +00:00
|
|
|
, pytest-aiohttp
|
2021-10-17 09:34:42 +00:00
|
|
|
, pytest-asyncio
|
2021-03-23 19:22:30 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
2021-08-08 23:34:03 +00:00
|
|
|
, types-pytz
|
2021-03-23 19:22:30 +00:00
|
|
|
, voluptuous
|
2021-10-17 09:34:42 +00:00
|
|
|
, websockets
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simplisafe-python";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2023.10.0";
|
2021-03-23 19:22:30 +00:00
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "simplisafe-python";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-U3SbaR8PTTvoAMu65+LAHSwTmR7iwqiidbefW8bNSCo=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2021-07-24 12:14:16 +00:00
|
|
|
backoff
|
2022-05-18 14:49:53 +00:00
|
|
|
beautifulsoup4
|
2021-12-06 16:07:01 +00:00
|
|
|
docutils
|
2021-03-23 19:22:30 +00:00
|
|
|
pytz
|
|
|
|
voluptuous
|
2021-10-17 09:34:42 +00:00
|
|
|
websockets
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-17 09:34:42 +00:00
|
|
|
aresponses
|
2021-08-08 23:34:03 +00:00
|
|
|
pytest-aiohttp
|
2021-10-17 09:34:42 +00:00
|
|
|
pytest-asyncio
|
2021-03-23 19:22:30 +00:00
|
|
|
pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
types-pytz
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
disabledTests = [
|
|
|
|
# simplipy/api.py:253: InvalidCredentialsError
|
|
|
|
"test_request_error_failed_retry"
|
|
|
|
"test_update_error"
|
2022-05-18 14:49:53 +00:00
|
|
|
# ClientConnectorError: Cannot connect to host auth.simplisafe.com:443 ssl:default [Temporary failure in name resolution]
|
|
|
|
"test_client_async_from_refresh_token_unknown_error"
|
2021-08-08 23:34:03 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Ignore the examples as they are prefixed with test_
|
|
|
|
"examples/"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"simplipy"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
meta = with lib; {
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/bachya/simplisafe-python/releases/tag/${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
description = "Python library the SimpliSafe API";
|
|
|
|
homepage = "https://simplisafe-python.readthedocs.io/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|