2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-07-24 12:14:16 +00:00
|
|
|
, aioresponses
|
2021-03-23 19:22:30 +00:00
|
|
|
, asynctest
|
2021-07-24 12:14:16 +00:00
|
|
|
, backoff
|
2021-03-23 19:22:30 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2021-08-08 23:34:03 +00:00
|
|
|
, pytest-aiohttp
|
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
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simplisafe-python";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "11.0.4";
|
2021-03-23 19:22:30 +00:00
|
|
|
format = "pyproject";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "0ad0f3xghp77kg0vdns5m1lj796ysk9jrgl5k5h80imnnh9mz9b8";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2021-07-24 12:14:16 +00:00
|
|
|
backoff
|
2021-03-23 19:22:30 +00:00
|
|
|
pytz
|
2021-08-08 23:34:03 +00:00
|
|
|
types-pytz
|
2021-03-23 19:22:30 +00:00
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-07-24 12:14:16 +00:00
|
|
|
aioresponses
|
2021-03-23 19:22:30 +00:00
|
|
|
asynctest
|
2021-08-08 23:34:03 +00:00
|
|
|
pytest-aiohttp
|
2021-03-23 19:22:30 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
disabledTests = [
|
|
|
|
# simplipy/api.py:253: InvalidCredentialsError
|
|
|
|
"test_request_error_failed_retry"
|
|
|
|
"test_update_error"
|
|
|
|
];
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
disabledTestPaths = [ "examples/" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "simplipy" ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library the SimpliSafe API";
|
|
|
|
homepage = "https://simplisafe-python.readthedocs.io/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|